I have a grid and i used the sorting functionality. so if no records in grid and when i clicked on sorting it will fill the data to the grid.
Is there any way to disable sorting for a column header when there are no record in the grid.
thanks
waruni
2 Answers, 1 is accepted
0
Daniel
Telerik team
answered on 07 Jan 2011, 12:09 PM
Hello Waruni,
A possible approach is to set the AllowSorting property in the NeedDataSource handler:
It is also possible to count the items in RadGrid after it has been bound but this will require that you rebind the control manually in normal circumstances.