PDA

View Full Version : [DUP] Form error validation with comboBoxes on Multi tab form



28 Sep 2014, 10:53 AM
Hi all,

when we split a form in multiple tabs with a tabpanel and place a combo on one of them the field dont get loaded and form validate fails when the field has a correct value.

If we visit all tabs then validation works ok.

https://fiddle.sencha.com/#fiddle/b0i

To test launch fiddle and click send button to get error.

If launch fiddle, visit all tabs and click send the form works without problems.

Gary Schlosberg
29 Sep 2014, 8:56 AM
Have a look at the deferredRender option for the tab panel.
http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.tab.Panel-cfg-deferredRender

It defaults to 'true' for performance. Setting it to 'false' on the tab panel makes all tabs render at load.

30 Sep 2014, 12:37 AM
Have a look at the deferredRender option for the tab panel.
http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.tab.Panel-cfg-deferredRender

It defaults to 'true' for performance. Setting it to 'false' on the tab panel makes all tabs render at load.

That's woks great

Thanks a lot!!

evant
30 Sep 2014, 2:58 AM
I'm going to open a ticket for this. Gary is correct that forcing a render will resolve the issue, because the bindings don't get created until render time. It would be nice to have the option to force it to happen earlier for scenarios like these.