Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Advanced data grid

Avatar

Level 1
I am using an advanced data grid, which receives data from a
data provider every few seconds. Initially the data is sorted on
two columns eg. colA & colB. But when the user clicks on the
header to sort, the data grid should remember the sort order that
user wants eg. sort 1st by colC and then by colB. I have been able
to do this for one column using headerRelease event by calling a
method on it. This method passes the column name based on the
column index to the data provider, and the data provider sorts data
according to this. But my main problem is how do I implement this
for multiple column sort? No idea how to know which multiple
headers were clicked and in which order. Can some body please help?
Thanks in advance.
0 Replies