[CLOSED] Disable button based on store uncommited changes

  1. #1

    [CLOSED] Disable button based on store uncommited changes

    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.
    Last edited by Daniil; Mar 14, 2014 at 8:27 AM. Reason: [CLOSED]
  2. #2
    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

Similar Threads

  1. [CLOSED] Disable items of combobox and reenable them based on condition
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 18
    Last Post: Sep 05, 2013, 10:21 AM
  2. [CLOSED] Disable/Enable Vertical Marker based on Context Menu
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jun 21, 2013, 1:44 PM
  3. [CLOSED] Dont display "Uncommited Changes" Question
    By tms in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: May 18, 2010, 10:55 AM
  4. Grid - Disable Editor Based upon value
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Sep 25, 2009, 9:53 AM
  5. Replies: 2
    Last Post: May 04, 2009, 4:52 AM

Tags for this Thread

Posting Permissions