Results 1 to 3 of 3

Thread: to be notified by a event when the form is dirty

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    29

    Default to be notified by a event when the form is dirty

    Hello,

    I have a tab pannel in which I use differtent panels, and in the first I have a form.
    I would like to change the title of this panel (in which I have the form) for example to add a '*' after the title or to change the color of the title when at least one field of the form has change.

    I know that we can rely on the method isDirty() of the basicpanel, but I would like to handle that with event and not to request (with this method).

    Whenever one field is change, I would like to have an event that fires this information.

    Is this already existing ?
    Or is there a way to simply do that ?

    Thank you very much for your help.

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    I agree that "state change" events like this are desirable.

    validstatechange and dirtystatechange are needed.

    You will have to either hook into the FormPanel's clientvalidation event (which fires repeeatedly if you configure it monitorValid: true)

    Or bubble the change event from all added fields, and then listen for "change" at the FormPanel level.

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Posts
    29

    Default

    Thanks, i finally opted for bubling change event from all added fields to their owner form and works fine.

Similar Threads

  1. EditorGrid dirty event
    By gorilla076 in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 6 Apr 2010, 3:37 AM
  2. how can a grid be notified before the container window resizes
    By aj3423 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Nov 2009, 8:50 AM
  3. Get notified when an element in a form is changed.
    By wuschba in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 20 Apr 2008, 11:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •