good morning everyone,
I am currently using the licensed version of Kendo UI Complete for ASP.NET MVC (Q2 2012) and trying to figure out if the Kendo UI Grid has something similar to the DataKeys method in the Telerik Extensions for ASP.NET MVC Grid?
Before this, I was using the licensed version of Telerik Extensions for ASP.NET MVC. Below is the code I had for it. You'll notice, there is a "DataKeys" method which I can associate the "Id" property of the Model, to each row of the Grid.
Is there something similar in the Kendo UI Grid??? Below is my current Kendo UI Grid.
Thank you very much for your help.
I am currently using the licensed version of Kendo UI Complete for ASP.NET MVC (Q2 2012) and trying to figure out if the Kendo UI Grid has something similar to the DataKeys method in the Telerik Extensions for ASP.NET MVC Grid?
Before this, I was using the licensed version of Telerik Extensions for ASP.NET MVC. Below is the code I had for it. You'll notice, there is a "DataKeys" method which I can associate the "Id" property of the Model, to each row of the Grid.
@{Html.Telerik().Grid(Model)
.Name("grdAllUsers")
.DataKeys(keys => keys.Add(k =>
k.Id)
)
.Columns(columns =>
{
columns.Bound(o => o.FirstName)
.Width(150);
columns.Bound(o => o.LastName)
.Width(150);
columns.Bound(o => o.EmailAddress)
.Width(200);
.Width(70)
.HtmlAttributes(new { style = "text-align:center" });
})
.NoRecordsTemplate(@<
text
>No User records to display.</
text
>)
.Pageable(paging =>
paging.PageSize(15)
)
.Sortable()
.Filterable()
.Render();
}
Is there something similar in the Kendo UI Grid??? Below is my current Kendo UI Grid.
@{Html.Kendo().Grid(Model)
.Name("grdAllUsers")
.Columns(columns =>
{
columns.Bound(o => o.FirstName)
.Width(150);
columns.Bound(o => o.LastName)
.Width(150);
columns.Bound(o => o.EmailAddress)
.Width(200);
.Width(70)
.HtmlAttributes(new { style = "text-align:center" });
})
.Pageable(paging =>
paging.PageSize(15)
)
.Sortable()
.Filterable()
.Render();
}
Thank you very much for your help.