Two approaches come to my mind.
The first thing you can try is use the model's setFields()
method. I have never used this method before, but according to the docs it looks like it could satisfy what you are looking for. An example can be found here: http://www.sencha.com/forum/showthread.php?189160-Ext.data.Model-setFields-not-Working-as-Expected
--OR--
Something I have done in the past is create 2 stores that use 'App.model.ChildModel1'
and the other uses 'App.model.ChildModel2'
. Then you can use reconfigure()
on the panel/grid and give it the store appropriately.