Event Order

http://webix.com/snippet/f6d8f648

On this snippet

  1. click on description
  2. edit Description.
  3. click on Save button

As you can see, Description is saved after clicking Save Button.
How is it possible to have datatable to save data first.

I succeed with webix.delay, but i don’t like this !

Thanks

You can add the direct command to stop edit in the datatable into the click handler of the button

$$("dt1").editStop(); 

the same can be done in more abstract way. The next code will close all editors on the page.

webix.callEvent('onEditEnd',[]);