PDA

View Full Version : How to disable refresh button on grid panel



rsandeep
27 May 2010, 1:53 AM
hello,
I have added a refresh button my grid panel using one of the config options : 'tools' .

below is the code snippet.




tools:[{
id:'refresh',
qtip:'Reload this data',
handler: function(e, target, panel){ // function to handle refresh}


}]


Now I want to know how can I disable this button during refresh is happening since I want to restrict the user not to press again the refresh button again during data is reloading.

Please suggest how can I handle this.

thnx advance,
sandeep

4 Jun 2010, 6:01 AM
Sandeep, you need to post in the correct forum. Moving to extjs 3.0 help.

Keylan
4 Jun 2010, 7:56 AM
Give the button an id so that you can find it through the panel in order to disable it.