Results 1 to 2 of 2

Thread: Change the tab panel dynamically according to the store load

  1. #1
    Ext User
    Join Date
    May 2010
    india Bangalore

    Question Change the tab panel dynamically according to the store load

    hi all,

    i have 2 tab panels, i am having a search option in tab panel with two different forms,In that when the page is loaded the previous search s are shown in fields, its working correctly. now i want the tab panel to change according to the value specified in the load.
    this id the store:
    var ds1 = new{
            proxy: new{ //pruneModifiedRecords: true,
            url: 'saved_search.php',
            method: 'POST'
        reader: new{
            root: 'results',
            id: 'alert_detail_id',
            fields: ['types', 'category_name']
    listeners: {
        load: function (thisDS,records,options)
            if (this.reader.jsonData.success) {
                if (records.length > 0) {
    the json format:
    ({"results":[{"category_name":"c1","types":"types:","search typr":"Basic search"}],"success":"true"})If the search type is basic search the basic tab panel should be active and vice cersa for advanced panel please see the image for detailsf1.jpg

  2. #2
    Sencha User's Avatar
    Join Date
    Mar 2007
    DC Area =)


    Well you're half way there. Why not inspect the contents of the record and set the active tab accordingly.

Similar Threads

  1. Change config for tab control dynamically
    By tBSTAR in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Jan 2009, 10:51 AM
  2. dynamically change Load Mask Text
    By dheeraj in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 18 Oct 2008, 10:23 AM
  3. How do I dynamically change a tab's header icon?
    By illuminum in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2008, 10:10 PM

Posting Permissions

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