In their documentation Telerik says that there is a way to disable sorting for specific column by using AllowSorting property. I’m looking at Telerik.Web.UI.GridColumn members and there is no AllowSorting property. There is a Sortable property but its protected and has to be overriden. So what do I use to turn off sorting for specific column?
There is a AllowSorting property on GridBoundColumn but in this case I’m using GridTemplateColumn. Is there a way to turn off sorting on GridTemplateColumn?
Okay, I got the desired effect, I turned off sorting by setting GridTemplateColumn’s SortingExpression property to blank.
This looks like a hack. Why isn’t there an explicit property to turn off sorting? Oh well. This works.
If you know a better way, let me know.
Thanks.