1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Posts
    13
    Vote Rating
    0
    adamb500 is on a distinguished road

      0  

    Default Adding a grid to a tab

    Adding a grid to a tab


    I'm relatively new to Ext and am upgrading some code to use Ext.JS 4.

    The 'add' method seems to have been removed and now I can't assign the grid to the tab named EmployeesTab.

    Originally (version 3) we had:

    Code:
    listViewTabPanel.getItem('EmployeesTab').add(employeeGrid);
    ...where employeeGrid is an Ext.grid.Panel

    What is the equivalent call in Ext.JS 4?

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    interesting...

    I would say listViewTabPanel.down('EmployeesTab').add(employeeGrid)

Similar Threads

  1. Replies: 1
    Last Post: 17 Apr 2011, 8:42 PM
  2. Replies: 3
    Last Post: 5 Jul 2010, 5:38 AM
  3. adding a toolbar to a grid via grids items and then adding buttons
    By nadeemshafi9 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 22 Apr 2009, 5:51 AM
  4. Grid: Adding an image column adds additional rows to the grid
    By JavaDirk in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 6 Nov 2007, 12:14 AM
  5. adding a combo box to a grid, filled with data from grid's ds?
    By randomseb in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Oct 2007, 11:02 AM

Thread Participants: 1