[CLOSED] Upgrade to Ext.net 2 the example "TabPanel with plugins to rename tab inline, ....."

  1. #1

    [CLOSED] Upgrade to Ext.net 2 the example "TabPanel with plugins to rename tab inline, ....."

    Goodmorning,
    I am trying to update to Ext.net 2 the example http://forums.ext.net/showthread.php...-confirm-close .
    I am firm to the point to the itemTpl of TabPanel, I am comparing the documentation of Ext JS 3.4 Sencha with the documentation of Ext JS 4.1.2 Sencha, but I don't succeed in finding the itemTpl.
    This is old code:

    onTabPanelRender: function () {
      this.addTab = this.tp.itemTpl.insertBefore(this.tp.edge, {
        id: this.tp.id + 'addTabButton',
        cls: 'add-tab',
        text: this.addTabText || ' ',
        iconCls: ''
        }, true);
    
    
        this.addTab.child('em.x-tab-left').setStyle('padding-right', '6px');
        this.addTab.child('a.x-tab-right').setStyle('padding-left', this.tp.tabPosition == 'top' ? '6px' : '0px');
    
    
        this.setEnableState();
    }
    Thank you very much

    Jimmy
    Last edited by geoffrey.mcgill; Sep 29, 2012 at 2:03 AM. Reason: [CLOSED]
  2. #2
    Hi Jimmy,

    Now in ExtJS 4 a special container TabBar is used to render and contain the tabs buttons. There is no direct substitution for ExtJS TabPanel itemTpl.

    Please investigate TabBar.
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tab.Bar

    I would also update the thread you referred. Maybe, Anup has been already ported this example to Ext.NET v2 or, at least, looking at it.

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  2. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  3. Replies: 9
    Last Post: Nov 15, 2011, 2:37 PM
  4. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  5. Replies: 0
    Last Post: Jan 18, 2011, 3:53 AM

Posting Permissions