I am trying to solve a display issue with the grid sorting images. I would like to have them hidden when sorting is activated. The sorting function itself may remain intact, with the only difference being that no image will display in the header. (the rgsortasc and rgsortdesc)
There seem to be several examples of similar sorting functionality in the forums. The difference is that I would need mine to be generic enough to capture the uniqueid from the event, rather than manually assigning this value. There are too many grid columns that to do each one would require unnecessary code replication.
I believe it will start out like this:
Any help will be greatly appreciated!
There seem to be several examples of similar sorting functionality in the forums. The difference is that I would need mine to be generic enough to capture the uniqueid from the event, rather than manually assigning this value. There are too many grid columns that to do each one would require unnecessary code replication.
I believe it will start out like this:
protected void grid_ItemCreated(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridHeaderItem) |
{ |
GridHeaderItem header = (GridHeaderItem)e.Item; |
// Logic to hide the sorting images for all columns firing the event |
} |
} |
Any help will be greatly appreciated!
- ASP.NET version: 3.5
- OS: Windows XP SP2
- exact browser version: 6.0.2900.2180
- exact version of the Telerik product: 2008.1.609.35
- preferred programming language: C#