This question is locked. New answers and comments are not allowed.
Hi there, I've got an issue with sorting. I know the .Sortable(false) can be used to disable sorting on bound columns, however, what if you have autogenerated columns and wish to disable sorting on one of those? Here part of my code. I wish to disable sorting on a column with the member name "ModifiedByOn" ....heres my code.
<%=Html.Telerik().Grid<Orrly.Aha.Atool.Models.Ann>() .DataBinding(dataBinding => dataBinding.Ajax().Select("GetExistin", "Ann") .Insert("CreateAnn", "Ann") ) .Name("Ann") .ToolBar(commands => commands.Insert()) .DataKeys(datakey=> datakey.Add(p=>p.Id)) .Columns(columns => { columns.AutoGenerate(column => { if (column.Member == "Id") column.Visible = false; }); }).Pageable(page => { page.Style(GridPagerStyles.NextPrevious | GridPagerStyles.PageInput | GridPagerStyles.Numeric | GridPagerStyles.PageSizeDropDown); page.PageSize(10); }).Editable(editable => editable.Mode(GridEditMode.InForm)).ClientEvents(clientevents=>clientevents.OnEdit("onAnnEdit").OnLoad("onGridLoad")) .Sortable().Filterable() %>