I have an Extjs window which has two buttons ‘Save and Refresh’ and ‘Clear’ Buttons.
Now I need to refresh the window on button click of the ‘Save and Refresh’ button.
could you please explain me how to do this?
Thanking You,
Regards,
Sathya
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.
You’ll need a reference to the button. Hopefully you already have one in your code, but if not you could try the Ext.Windows public “buttons” property:
Although if I remember right the buttons property went away in 4.0… all the more reason to keep your own reference to the button.
To reload the page as soon as the button is clicked:
more likely you’ll want to wait for an AJAX request to complete the save (guessing based on the ajax tag on your question and common sense)