PDA

View Full Version : how do I wait to do something after my sort is finished



Mulvihic
16 Dec 2013, 6:13 PM
Hi,
I want to wait to do something after I have sorted my grid store.
How do I stop the code from moving on?

This is my code at the moment:

grid.store.sort([{ property: 'colname', direction: 'ASC' } ]);
DoSomething();


Thanks

girish.arjunagi
16 Dec 2013, 9:05 PM
Are you performing the remote sort or local sort in the store?

Mulvihic
17 Dec 2013, 2:27 AM
I'm not sure- I'm sorting the sort connected to the view. I think it's a local sort.