Home › Forums › TreeGrid › SortTree Method
Hello,
Does anyone have an example of uisng this method? When I run it like this..
$(“#myTreeGrid”).SortTree(“desc”);
I don't see anything happen.
You are close, except that you should use it like this
$(”#myTreeGrid”).SortTree(1); // use 1 for asc and -1 for desc order.
I recommend you to use other most common methods like sortGrid – see docs.
Regards
Tony
Thanks for the help Tony!
just an fyi, I was looking at this page for documentation..
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid
And in the description for the parameter “direction” for the SortTree method
Thank you for this. Will be corrected.
Best Regards
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS