This question is locked. New answers and comments are not allowed.
Hi
I have a situation where i dont know what columns (and in which order) are shown in a grid, until the grid is loaded.
How would i create columns servers-side ?
So instead of below, how would i do this server-side?
Many Thanks
Mark
I have a situation where i dont know what columns (and in which order) are shown in a grid, until the grid is loaded.
How would i create columns servers-side ?
So instead of below, how would i do this server-side?
@(Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(o => o.OrderID).Width(100);
columns.Bound(o => o.ContactName).Width(200);
columns.Bound(o => o.ShipAddress);
columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);
})
)
Mark