Hello!
With some small changes in the code it is possible to disable custom buttons by means of using the CSS class “ui-state-disabled”.
ui.jqgrid.css (fix cursor pointer)
change styles FROM:
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div {padding:1px 0;cursor:pointer; float:left;list-style-image:none;list-style-position:outside;list-style-type:none;position:relative;}
-> TO:
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div {padding:1px 0; float:left;list-style-image:none;list-style-position:outside;list-style-type:none;position:relative;}
.ui-jqgrid .ui-jqgrid-pager .ui-pg-button { cursor:pointer; }
grid.formedit.js (fix pg-button hover effect for disabled buttons)
… in navButtonAdd: change the hover function to check for “ui-state-disabled” (furthermore the inline CSS-style for cursor is not required)
change grid.formedit.js FROM:
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top