Results 1 to 4 of 4

Thread: Grid in tabs

  1. #1
    Sencha User
    Join Date
    May 2009
    Location
    Islamabad
    Posts
    24

    Default Grid in tabs

    I am trying to show two grids in two tab panels but some how the grid panel in the 2nd grid is not shown. But i am sure it is rendered but not displaying at all.

    Any help plz

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Well using my crystal ball, I'm guessing you have overnested, reading the the term "grid in a tab" where in reality the grid should be a tab.

    Code:
        myTabPanel.setActiveTab(myTabPanel.add(myGridPanel));

  3. #3
    Sencha User
    Join Date
    May 2009
    Location
    Islamabad
    Posts
    24

    Default Thanks

    Thanks for the reply. And sorry i have identified the problem as the second tab is hidden in the start and i try to set the width from the hidden tab div which gave me 0 height and width and the grid is not shown.

    Problem is solved.

    Thanks

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    You don't do any size management of child items of a TabPanel. The TabPanel sizes its child items to fit in its client area.

Posting Permissions

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