I have a radGrid in a user control which is loaded dynamically into my page via code. I am able to sort any of the sortable columns in ascending order by clicking the column header. when I attempt to change the sort to descending by clicking a second time on an already sorted column, the sortable column immediately preceding the column I clicked on gets sorted in ascending order. This does not happen when this same user control is referenced directly in the page (not loaded dynamically). Vewstate is enabled.
This is just really odd behaviour which has me stumped. i thought it might be that the sorting was attempting to use a column index for sorting, and was somehow using the wrong index. I added a breakpoint to the grid's SortCommand event handler and the information in the GridSortCommandEventArgs (e) says that the sort expression that will be applied on the second click is from the preceding column, not the column I clicked. I am not hiding or showing columns and the column that is ultimately sorted is not necessarily the column immediately preceding the column I clicked...it is the preceding column that is sortable.
I have attached screen shots of my grid after the first sort and second sort on the same Status column. In these screen shots, the Recipients column is not sortable.
Thanks for the help!
Sean Severson
This is just really odd behaviour which has me stumped. i thought it might be that the sorting was attempting to use a column index for sorting, and was somehow using the wrong index. I added a breakpoint to the grid's SortCommand event handler and the information in the GridSortCommandEventArgs (e) says that the sort expression that will be applied on the second click is from the preceding column, not the column I clicked. I am not hiding or showing columns and the column that is ultimately sorted is not necessarily the column immediately preceding the column I clicked...it is the preceding column that is sortable.
I have attached screen shots of my grid after the first sort and second sort on the same Status column. In these screen shots, the Recipients column is not sortable.
Thanks for the help!
Sean Severson