I need to know how to enable/disable button through code;
My workings so far;
var button= Ext.ComponentQuery.query('#id> #button1')[0];
button.disable();
i also tried ;
button.setDisable(true);
Nothing worked. what is the solution for this ?
Can you just hide the button?
button.Visible = false;