Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Location
    Rudolstadt, Germany
    Posts
    52
    Vote Rating
    0
    astuteq is on a distinguished road

      0  

    Default How to remove a GroupTabPanel?

    How to remove a GroupTabPanel?


    Hello,

    I have a problem when I try to remove a GroupTabPanel.
    When I do "parent.remove(grouptabpanel)" only one TabItem is removed and the I get the error:

    "Result of expression 'item' [undefined] is not an object., ux-all-debug.js:4168"

    How can I remove the complete TabPanel?

    Here is my code:
    Code:
    {
    	xtype: 'button',
    	id: 'grouptab-btn',
    	text: 'GroupTab',
    	toggleGroup: 'menu',
    	enableToggle: true,
    	handler: function (b, e){
    		
    		var center = Ext.getCmp('center-div');
    		//remove GrouptabPanel from center-div
    		center.remove('center');
    		center.setTitle(' ');
    
    		if (b.pressed == true) {
    			center.setTitle('GroupTab');
    			//add GrouptabPanel to center-div
    			center.add({
    				id: 'center',
    				border: false,
    				layout: 'fit',
    				autoScroll: true,
    				items: [
    					{
    						xtype: 'grouptabpanel',
    						tabWidth: 130,
    						activeGroup: 0,
    						items: [
    							{
    								items:[
    									{
    										title: 'Dashboard',
    										html: 'Dashboard',
    										style: 'padding: 10px;',
    									}
    								]
    							},
    							{
    								items: [
    									{
    										title: 'Configuration',
    										style: 'padding: 10px;',
    										html: 'Configuration'
    									}
    								]
    							}
    						]
    						}
    					]
    				}
    			);
    		}
    		center.doLayout();
    	}
    }
    Here is how it looks like:

    panel-before-remove.png
    panel-after-remove.png

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Try to remove the group tab from Firebug/Web Inspector console and if it still fails I'd classify it as a bug.

    Update: I've tried to remove GroupTabPanel from the Viewport at http://dev.sencha.com/deploy/dev/exa...grouptabs.html by typing
    Code:
    Ext.getCmp('ext-comp-1004').remove(0)
    in WI console and I got the error
    Code:
    TypeError: Result of expression 'item' [undefined] is not an object.
    that is what you're getting too.

    Moving this thread to bugs.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2010
    Location
    Rudolstadt, Germany
    Posts
    52
    Vote Rating
    0
    astuteq is on a distinguished road

      0  

    Default


    Ext.getCmp('center').remove(0) shows me the same error. I have worked around it by using a card layout, I think I can work with this.

    Many thanks!

    BTW: I'm using Safari on Mac OS X to write to the forum. It seems that using the button "Preview Post" does not preview, but submit the reply! I will post this reply by using the "Preview Post" button, too.

Similar Threads

  1. Add iconCls to mainItem of GroupTabPanel and Remove expand/collapse icon
    By ornanong_o in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 26 Nov 2010, 1:38 AM
  2. GroupTabPanel Example
    By maximumcoder in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Nov 2010, 8:09 PM
  3. GroupTabPanel - can't add/remove dynamically
    By anreved in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 15 May 2010, 8:31 AM
  4. GroupTabPanel Add/Remove Tabs and Tab Groups
    By crpatrick in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 27 Jan 2010, 7:14 AM
  5. Need help in grouptabpanel
    By sseema in forum Ext 3.x: Help & Discussion
    Replies: 13
    Last Post: 23 Sep 2009, 8:23 PM

Thread Participants: 1

Tags for this Thread