"On Toggle" event to sort a list in data grid from ascending to descending order
I tried using the "on toggle" event feature with a single button so when pressed first sorts a data grid in descending order, and when pressed the 2nd time should reverts back to ascending, but only the first event works. Whats wrong , or what am I missing??
The data grid sorts fine using "set value' and sort etc, but when reverting back using the "toggle" the data grid disappears except for the headers. When pressed again, it shows up correctly as the first event and so on and so forth.