Hi all,
I have looking for a long time a solution to define a default column sort but nothing.
Currently, when I activate the sort in a UniDBGrid, none column s sorted when the Dataset opens (no icon - arrow - in title). I must click on columns header to see this sort icon.
How can I to show this icon on the first column directly at first data load ?
At initialisation => no sort
When I click on title
PS: I have found this solution but I must call this code after all clients objects / data are rendered. This solution is not good.
DBGrid reloads the data and tries to sort it while the data is already sorted in that order => no look good !
UniSession.AddJS(UniDBGrid1.JSName+'.store.sorters.clear()');
UniSession.AddJS(UniDBGrid1.JSName+'.store.sorters.add(new Ext.util.Sorter({property: "0", direction: "ASC"}))');
Thank you for your help.