I've got some problems with the clientside sorting. It only seems to be where I've got null values inside a column. Interestingly, it doesn't work in any of the browsers, but it behaves differently, just all of them incorrectly.
Also, when you sort a column, the ImageHtmlAttributes section seems to be lost as I lose my icon for the edit button:
I've attached a few screen shots to demonstrate.
Any ideas?
Thanks,
-Sid.
@(Html.Telerik().Grid(Model).Name("DellGrid").DataKeys(keys => keys.Add(m => m.ServiceTag)).DataBinding(dataBinding => dataBinding.Ajax() .OperationMode(GridOperationMode.Client) .Select("Index", "DellSystem") .Update("Edit", "DellSystem")).Columns(columns =>{ columns.Bound(m => m.ServiceTag) .Title("Service Tag"); columns.Bound(m => m.Family) .Title("Family"); columns.Bound(m => m.LOB) .Title("LOB"); columns.Bound(m => m.ModelNumber) .Title("Model Number"); columns.Bound(m => m.ServiceDate) .Title("Service Date"); columns.Bound(m => m.RetireDate) .Title("Retire Date"); columns.Bound(m => m.User) .Title("Altiris User"); columns.Bound(m => m.CurrentUser) .Title("Current User"); columns.Bound(m => m.Whse) .Title("Location"); columns.Bound(m => m.Name) .Title("Computer Name"); columns.Command(commands => { commands.Custom("Edit").ButtonType(GridButtonType.Image) .ImageHtmlAttributes(new { @class = "t-icon t-edit" }) .Text("Edit") .Action("Edit", "DellSystem"); }).Width(150);}) .Groupable() .Sortable() .Pageable(page => page.PageSize(20)))Also, when you sort a column, the ImageHtmlAttributes section seems to be lost as I lose my icon for the edit button:
columns.Command(commands =>{ commands.Custom("Edit").ButtonType(GridButtonType.Image) .ImageHtmlAttributes(new { @class = "t-icon t-edit" }) .Text("Edit") .Action("Edit", "DellSystem");}).Width(150);I've attached a few screen shots to demonstrate.
Any ideas?
Thanks,
-Sid.