Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this code


@(Html.Kendo().Grid<employees>().Name("Employees").Columns(c =>
{
c.Bound(e => e.EmployeeId).Template(@<text>
@{

<input type="checkbox" id="chkEmployeeId" value="@item.EmployeeId" />

}
).Title("
Select
").Width(70);



c.Bound(e => e.FirstName);
c.Bound(e => e.Email);
c.Bound(e => e.Mobile);
})
.DataSource(d => d
.Ajax()
.Read(r => r.Action("GetEmployeeToTextJson", "Employee"))
.PageSize(10)
)
.Pageable()
.Sortable()
.Filterable()

)



--
the checkbox is showing id instead of checkbox , so what needs to be done instead to show the checkbox and not the id. Please help me for this matter.

Thanks

What I have tried:

c.Bound(e => e.EmployeeId).Template(@<text>
@{

<input type="checkbox" id="chkEmployeeId" value="@item.EmployeeId" />

}
).Title("
Select
").Width(70);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900