Telerik RadGrid - How to disable sorting for a Column? -
In these, Telechers say that permission is a way to disable sorting for specific columns using calling properties. I see and there is no permission property there is a sortable property but it is protected and should be overridden. So what do I use to stop sorting for specific columns?
Gridbod is an approved property on the column but in this case I am using the Grid Template column. What is a way to turn off sorting on GridTemplateColumn?
Acceptable attribution is available from source / markup View in Visual Studio for example (Simplified):
& lt; Tr: radgrid & gt; & Lt; MasterTableView & gt; & Lt; Columns & gt; & Lt; Tr: gridband column datafield = "field" header text = "allow" = "false" /> & Lt; / Column & gt; & Lt; / MasterTableView & gt; & Lt; / TR: RadGrid & gt; I do not know what it does for you? I have not instantiated my grid from the files behind the code, so if you are doing this then I can not help you easily. But the above works for me.
Edit:
Ah, it was not clear from the original question that you were using the Grid Template column. As you are now using SortExpression-property, do not you use the same attribute in the markup function? Therefore:
& lt; Tr: RadGrid & gt; & Lt; MasterTableView & gt; & Lt; Columns & gt; & Lt; Tr: GridTemplateColumn HeaderText = "Description" datafile = "field" sortexpress = "" & gt; & Lt ;! - Template here - & gt; & Lt; / TR: GridTemplateColumn & gt; & Lt; / Column & gt; & Lt; / MasterTableView & gt; & Lt; / TR: RadGrid & gt;
Comments
Post a Comment