In extjs, gridFilters, we have:
grid.on({
scope: this,
beforestaterestore: this.applyState,
I am unable to understand what exactly is the beforestaterestore doing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
beforestaterestoreevent is fired before a Grid is loaded, assuming that thestatefulconfig option was used when creating the Grid.The code that you’ve listed will call the Grid’s
applyStatemethod when this event fires, which will copy properties from the state provider to the Grid object.I would strongly advise taking a look at the ExtJS Documentation for the Grid Panel for more information.