Results 1 to 2 of 2

Thread: PropertyGrid with ArrayStore Problem

  1. #1
    Ext User Righi's Avatar
    Join Date
    Dec 2009
    Location
    SP, Brasil
    Posts
    12

    Default PropertyGrid with ArrayStore Problem

    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:

    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++;
    };
    When I run that, the PropertyGrid show only "New Form: N" and "Comments:e".

    I'd try to find some examples, but I can't. What am I doing wrong?

    Thank you all.

  2. #2
    Ext User Righi's Avatar
    Join Date
    Dec 2009
    Location
    SP, Brasil
    Posts
    12

    Default

    Nobody can help?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •