I have a kendo ui grid in my page that has some columns. Now I want to add a column to it that shows me row number. How to I do this? Thanks.
For asp.net mvc wrapper you should use something like this:
@{
var counter = 1;
}
@( Html.Kendo().Grid()
.Name("grid")
.Columns(columns =>
{
// Define a template column with row counter
columns.Template(@@counter++ );
// Define a columns from your data set and set a column setting
columns.Bound(type => type.id);
columns.Bound(type=> type.name).Title("Name");
// add more columns here
})
)