Here is the razor builds my grid:
@(Html.Kendo().Grid(Model.ResultList)
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.Login).Title("Hesap No");
columns.Bound(c => c.FullName).Title("İsim");
columns.Bound(c => c.CreatedDate).Title("İşlem Tarihi");
columns.Bound(c => c.Amount).Title("Tutar");
columns.Bound(c => c.MonetaryUnit).Title("Kur");
columns.Template(e => { }).ClientTemplate(" ").Title("Hesap Bilgileri");
})
.ClientRowTemplate(
"<tr>" +
"<td>" +
"<span>#: Login #</span>" +
"</td>" +
"<td>" +
"<span>#: FullName #</span>" +
"</td>" +
"<td>" +
"<span>#: CreatedDate #</span>" +
"</td>" +
"<td>" +
"<span>#: Amount #</span>" +
"</td>" +
"<td>" +
"<span>#: MonetaryUnit #</span>" +
"</td>" +
"<td>" +
"<span>#: AccountName #</span>" +
"<span>#: BankName #</span>" +
"<span>#: BranchOfficeName # </span>" +
"<span>#: BranchOfficeCode # </span>" +
"<span>#: AccountNumber # </span>" +
"<span>#: IBAN # </span>" +
"<span>#: AccountType # </span>" +
"</td>" +
"</tr>"
)
.ClientAltRowTemplate(
"<tr class='k-alt'>" +
"<td>" +
"<span>#: Login #</span>" +
"</td>" +
"<td>" +
"<span>#: FullName #</span>" +
"</td>" +
"<td>" +
"<span>#: CreatedDate #</span>" +
"</td>" +
"<td>" +
"<span>#: Amount #</span>" +
"</td>" +
"<td>" +
"<span>#: MonetaryUnit #</span>" +
"</td>" +
"<td>" +
"<span>#: AccountName #</span>" +
"<span>#: BankName #</span>" +
"<span>#: BranchOfficeName # </span>" +
"<span>#: BranchOfficeCode # </span>" +
"<span>#: AccountNumber # </span>" +
"<span>#: IBAN # </span>" +
"<span>#: AccountType # </span>" +
"</td>" +
"</tr>"
)
.HtmlAttributes(new { style = "height: 700px;" })
.Scrollable()
.Sortable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
)
But my last column is not rendered as expected. The data provides the necessary columns but the column is always empty. Why? How can I fix it?
Thanks in advance,
ClientTemplate(" ")
). – ataravati