Search This Blog

Wednesday, February 15, 2012

Models and Forms still separate in ExtJS 4

link -> [B3] MVC RestProxy and Form validation:
We built store bound data controls because Ext doesn't let you do a two way data bind between a control and a Record. Even in ExtJS4 they still haven't fixed this. You have to manually call updateRecord on your form to update your Model with whatever the user has entered. Even worse if you are trying to use the RestProxy then there is no way to bind the errors you get back automatically to your form. The guy in this article figured out a way to do it manually.

Some guy figured out how fix this by overriding the Ext core code.

No comments:

Post a Comment