PDA

View Full Version : [CLOSED] Disable button based on store uncommited changes



jstifel
Mar 08, 2014, 8:58 AM
Hello, I want to know how to disable a button on client side when a store does not have any changes made to it.
I basically use the button to commit changes to database with the click direct event.

Vladimir
Mar 10, 2014, 7:58 AM
Well, you can set Disabled=true for the button initially and define the following listener for the store


<DataChanged Handler="#{MyButton}.disable();" />


If you do not want handle add/remove actions then use Update event instead DataChanged