[CLOSED] setting Visible to False on Tab causes js error

  1. #1

    [CLOSED] setting Visible to False on Tab causes js error

    following some of the advice, i am now trying to create a number of tabs in the OnInit event says 10 tabs and setting the Visible property to False. however when i do that (using 0.5.4) i get the following javascript error

    : missing
    from debug

    {id:"pnlContent",region:"center",items:{id:"CenterPanel",xtype:"tabpanel",items:[{id:"tbHome",title:"
    Home
    ",contentEl:"tbHome_Content"},{xtab0_ClientInit},{id:"xtab1",title:"xtab1",border:false,closable:true}
    you can see xtab0 is the tab i set visible to false

    this is the code used to create the tabs

    protected override void OnInit(EventArgs e)
    {
    base.OnInit(e);
    
    string id = "";
    for (int i = 0; i < 10; i++)
    {
    id = string.Concat("Tab", i.ToString());
    Tab tab = new Tab(id, id, id);
    tab.Visible = false;
    this.TabPanel1.Tabs.Add(tab);
    }
    }
    thank you in advance for your help. also, if I was using client side, what is best practice to save state stave and restore the tabs ona postback.
  2. #2

    RE: [CLOSED] setting Visible to False on Tab causes js error

    reading another post, it seems that it is fixed in 0.6. how can i get the fix.

    and i do have at least one tab set to visible.

    thanks again
  3. #3

    RE: [CLOSED] setting Visible to False on Tab causes js error

    Hi idrissb,

    I looked quickly at the source files, but I think the fix involved changing code in several places. I won't be able to extract the exact source and send it to you.*


    The fix will be available with the v0.6 release. The following thread is tracking the release of v0.6, see*http://forums.ext.net/showthread.php...=1224-7-1.aspx. The fix is also available to svn subscribers.*


    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] setting Visible to False on Tab causes js error

    Geoff

    how can i become a svn subscriber.
    thanks
  5. #5

    RE: [CLOSED] setting Visible to False on Tab causes js error

    Hi idrissb,

    From the Support page:

    Premium Technical Support Subscriptions are available to purchase and include direct access to the project source code (SVN read-only), premium forum access, email and phone support. Support Subscription Options
    Hope this helps answer your question.
    Geoffrey McGill
    Founder
  6. #6

    RE: [CLOSED] setting Visible to False on Tab causes js error

    thanks for your help Geoff.

Similar Threads

  1. [CLOSED] how to set panel visible true/false
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 19, 2011, 3:51 AM
  2. [CLOSED] window.visible = false
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Mar 09, 2011, 4:32 PM
  3. Set button visible to false
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Aug 24, 2009, 10:44 AM
  4. [CLOSED] tab visible false
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 02, 2009, 10:37 AM
  5. Replies: 4
    Last Post: Sep 10, 2008, 4:17 AM

Posting Permissions