A Extjs Form can be loaded without a store using just model. But sometimes for uniformity we prefer to lad by data store.
In the below example I will provide simple steps how this can be achieved.
What you need:
1) A data store.
2) A Model (referenced from data store)
3) A form panel
4) XML data (RESTful call or a xml flat file).
Now the place from where this from will be initiated:
renderTo : ‘divid’
Key Code to load the data to the form:
(First create the store and then load it to the form)
Note: getAt(0) is used because a form store can have only one data set. In case of grid having multiple record set, this will not be use. The store can be directly referred in Ext GRID.
Form doesn’t have a “store:” Config and hence has to be loaded using Store or only using model.