This question is locked. New answers and comments are not allowed.
The Telerik grid no longer displays the icon on the custom command button whenever sorting or filtering is done. This only appears to happen when the GridOperationMode is set to client. As if it doesn't cache the icon sprite.
Using version 2011.3.1306 in case this has been corrected in another version.
@(Html.Telerik().Grid(Model.noWO) .Name("NoWriteOffGrid") .DataKeys(keys => keys.Add(x => x.ID)) .DataBinding(binding => { binding.Ajax() .OperationMode(GridOperationMode.Client) .Select("SelectPatient", "Home", new { facility = (string)ViewData["facility"], MRN = (string)ViewData["MRN"] }); }) .Columns(columns => { columns.Command(commands => { commands.Custom("Create Packet").Action("WriteOff", "Home") .Text("Create Packet") .ButtonType(GridButtonType.ImageAndText) .ImageHtmlAttributes(new { @class = "t-icon t-add" }) .DataRouteValues(values => { values.Add(o => o.MRN).RouteKey("MRN"); values.Add(o => o.facID).RouteKey("FacilityID"); }); }).Width(140); columns.Bound(x => x.LastName).Width(150).Title("Last Name"); columns.Bound(x => x.FirstName).Width(150).Title("First Name"); columns.Bound(x => x.MRN).Width(150).Title("MRN"); columns.Bound(x => x.facID).Width(150).Title("Facility"); }) .Sortable(sorting => sorting .SortMode(GridSortMode.MultipleColumn) .OrderBy(or => or.Add(o => o.MRN).Ascending()) .OrderBy(or => or.Add(o => o.facID).Ascending()) ) .Filterable() .Pageable(paging => paging.Enabled(true).Position(Telerik.Web.Mvc.UI.GridPagerPosition.Bottom).PageSize(10)) )