khan4019 / tree-grid-directive

Need one or more maintainer for this! comment or email me if you are interested
http://khan4019.github.io/tree-grid-directive/test/treeGrid.html
347 stars 183 forks source link

How can I call sortBy function to do sorting on data load #92

Open SFDCACE opened 8 years ago

SFDCACE commented 8 years ago

Hi Guys, I love the tree grid, its simply awesome. I am just stuck at one point now. I have data which is getting populated in random manner. I want to sort the data alphabetically on load of the page. How could I do this, please assist.

TrueDub commented 8 years ago

The easiest approach would be for you sort it before passing it to the tree grid. Calling sortBy programmatically would present difficulties. We could use this issue as an enhancement request to provide the ability to allow an initial default sort, if that helps?

SFDCACE commented 8 years ago

Sorry for late reply on this, actually are getting raw data and cannot do any processing on the server side. If we have some parameter set in the config which would do default sorting on the specified column will definitely help many of us.