Grid: enable sorting after init ?


Is there a way to enable sorting after init() ?

I am dynamically loading xml, and want to enable sorting only after all rows have been loaded.

I tried handling onBeforeSorting event and returning true/false from it based on whether data is fully loaded or not, dint work.

Any pointers ?

Thanks in advance,


You can use onXLE event or second parameter on load method to catch the moment, when data loaded and ready to be sorted