Changes between Initial Version and Version 6 of Ticket #15250


Ignore:
Timestamp:
Apr 27, 2012, 12:06:51 PM (9 years ago)
Author:
bill
Comment:

What if Form.set(...), which calls set() on the child widgets, used that third parameter to set() to turn off notifications?

childWidget1.set("value", 123, false);
childWidget2.set("value", "hello world", false);
...

Form could still send it's own onChange() notification.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15250 – Description

    initial v6  
    11this is a request for a way to detect / run code after a dijit.form.Form has been completely reset and no more relevant onChange events will be triggered which is very essential when implementing forms doing AJAX actions for e.g. editing / adding records, something like this is useful:
    22
     3{{{
    34dojo.connect(dijit.byId('form'), 'onAfterReset', function(evt){
    45   // assume no more relevant onChange event will be triggered by the previous reset
     
    78   dijit.byId('btnCancel').set('disabled', false);
    89});
     10}}}