PDA

View Full Version : User/Application settings form binding



mateuszo
14 Oct 2013, 1:15 AM
Hi There!

Im currently working on the form for presenting user settings in app.
So basically those user settings all comes from one table in DB and are stored pretty much like
key-value. So one setting is basically one row in this table

What is the best way to to the binding as it is like 30 controls(fields) on the form.
They'are actually pretty much static so no need to do it in fancy dynamic way, but of course if
you have any thoughts would be awesome.

Thanks!

ettavolt
14 Oct 2013, 2:35 AM
There are two options: create form.Panel and use setValues (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.Panel-method-setValues) or create a property.Grid and use setSource (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.property.Grid-method-setSource).