Skip to content Skip to sidebar Skip to footer

What Is A Good Way Of Filling A Form In Extjs By Code, And Fire The Events For Each Component As If They Were Filled By The User?

In the project I'm working on, I have forms I sometimes have to fill by code. Let's say I have two comboboxes : combo1 and combo2. They are both required by default (allowBlank : f

Solution 1:

Yes, you need to trigger the events manually.

No UI events are triggered with JavaScript. This is to prevent endless loops and other undesired side-effects while interacting with the page programmatically.

In ExtJS, there is component.fireEvent(...) for that purpose.

Post a Comment for "What Is A Good Way Of Filling A Form In Extjs By Code, And Fire The Events For Each Component As If They Were Filled By The User?"