I'm very new in ExtJS, and in trouble with PropertyGrid. I'm trying to create some Tabs and I have to store some information in the object, because latter I'll have to retrieve this information (lots of tabs and other objects). For this I'm using the ArrayStore to save these infos (parameters). After I save the infos, I have to show that in a PropertGrid, to show/edit that. The code I'm using is this:
When I run that, the PropertyGrid show only "New Form: N" and "Comments:e".var tabcount = 1;
var docStore = new Ext.data.ArrayStore({fields: [{name: 'Name', type: 'string'},
{name: 'Comments', type: 'string'}],idIndex: 0});
function addForm() {var tab = Ext.getCmp('tabs').add({title: 'New Form',id: 'tab_' + tabcount,tabTip: 'Form',iconCls: 'icon-form',closable: true});
var dataStore = [tabcount, 'New Form', 'Some comment'];};
docStore.loadData(dataStore,true);
Ext.getCmp('docProperty').setSource(docStore.getAt(tabcount).data);
Ext.getCmp('tabProperties').activate(0);
tab.show();
tabcount++;
I'd try to find some examples, but I can't. What am I doing wrong?
Thank you all.