Hi Team,
On my last posts it takes many days to get a reply. Please give a solution in this as soon as possible.
I had asked it previously, but till now there was no reply on it.
The thing is that by default the sorting is occuring as defined:
- On first click of the column header the sort will happen in ascending order.
and in second click in descending order and so and so.
But my scenario is that I want
- on first click have to sort in ascending, on second click revert back to previous condition (None as unsorted form of data - in columns as on first load) and on third click descending sort. Then on fourth unsorted and on next ascending and so and so.
So please do reply on this as soon as possible.
Thanks in advance.
Regards,
Assyst
Hi Dave,
Dude I had done it. Anyway thanks for the help. We need to clear out the sorted columns. Some extra stuff is needed. Your help in this manner is greatly appreciated.
I agree with that. But wont do any unsorting. If sorted in ascending/descending order then if sorted with 0-None nothing will happen. It just remain same as the way it get sorted previously. But I need the data just as the way before any ascending/descending is done.
So how can achieve that unsorting.
Thanks,
Hi,
These numbers match the SortDirection enum that we have on the server.
0- None, 1- Ascending, 2- Descending
regards,David Young
I have sorted it out. But how can we unsort a sorted column. There is only sort direction indicators (0,1,2). So can we?
If gone with this
<ig:Sorting Enabled="true" SortingMode="Single"> <SortingClientEvents ColumnSorting="wdgGrid_ColumnSorting" /> </ig:Sorting>
it's working. But as creation of behavior is dynamic I have to call it as,
this.wdgDataGrid1.Behaviors.CreateBehavior<Sorting>(); this.wdgDataGrid1.Behaviors.Sorting.SortingClientEvents.ColumnSorting = "wdgGrid_ColumnSorting";
And then its not working.
But for other client events its functioning for them. So any additional item is needed for this?