Results 1 to 4 of 4

Thread: Dynamicaly change data in store with ExtJs 3.4

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    45

    Default Dynamicaly change data in store with ExtJs 3.4

    I have a store and dynamically change its URL.

    Code:
        store_form.proxy.conn.url=url;
        store_form.load();
        tabs.activate(1);
    So if I change the URL, data in the store are going to change.

    This store I load into `FromPanel`, which is located in a tab:

    Code:
        listeners: {
            'activate' :  function(zemform,records,options) {
                console.log("store:"+store_form.getAt(0));
                this.loaded = true;
                var record = store_form.getAt(0);
                zemform.getForm().loadRecord(record);
                //store_form.reload();
            }
        },
    But when the tab is opened, I see previous data. New data show only when I click on another tab and then click back. What's wrong with it?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    549

    Default

    Can you provide the code for your tabpanel please?

    I'm going to assume it's actually a problem with your tabpanel not showing the correct content (i.e. the second "tab" may be selected, but the first tab "content" is still being shown).

    This is likely to be related to your hideMode setting.

    Try adding hideMode: 'offsets' to your tabPanel config.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    45

    Default

    Its my tab panel:

    Code:
                    var tabs = new Ext.TabPanel({
                        type:'tabpanel',
                        activeTab: 0,
                        bodyStyle:'padding:5px 5px 0',
                        autoScroll: false,
                        layoutOnTabChange: true,
                        height:400,
    
                        items: [searchform,zemform,reallyform,docform,podform]
                    });
                    tabs.render(winBody);
    items it is a FormPanels.

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    549

    Default

    Have you tried adding:

    Code:
                    var tabs = new Ext.TabPanel({
                        ...
                        hideMode: 'offsets'
                        ...
                    });
                    tabs.render(winBody);

Posting Permissions

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