1
var btnNextp = Ext.getCmp('<% = btnNextPage.ClientID %>').getEl().dom.id;
//var  btnNextp = document.getElementById('<% = btnNextPage.ClientID %>');

// $("#btnNextPage").attr({ disabled: "false" }); 
Ext.getCmp('btnNextp').setBtnDisable(false); //not works properly
// Ext.getCmp('btnNextPage').enable();   //not works properly

These examples also creates uncaught errors in javascript.But why ?where is the problems. Thanks in advance.

Sterling Archer
  • 22,070
  • 18
  • 81
  • 118
  • Perhaps look at this?: http://stackoverflow.com/questions/17314166/how-to-disable-button-ext-js/33228452#33228452 – ManoDestra Mar 15 '16 at 19:28

1 Answers1

1

Try this:

<script type="text/javascript">

    var EnableButton = function () {
        var btnNextp = #{btnNextPage};
            btnNextp.setDisabled(false);
    };

</script>
Stefano Lonati
  • 704
  • 6
  • 15