-
6 Jan 2012 1:25 AM #1
Not able to remove item from a tabpanel
Not able to remove item from a tabpanel
Hello,
I have a tab-panel and i am adding few items dynamically into it. I want to delete the same from the tab-panel. However, when i delete the item from tab-panel the item content is getting deleted but the tab is still visible in the tab-bar. The tab-bar is not getting refreshed. Please find the sample screenshot as attachment.
Regards,
Suraj
-
6 Jan 2012 2:32 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Any JS errors that are prohibiting? I just ran this test on our latest code that will be apart of the next release and no errors:
Code:var tab = Ext.create('Ext.tab.Panel', { fullscreen : true, items : [ { title : 'One', html : 'one' }, { title : 'Two', html : 'two' } ] }); setTimeout(function() { tab.removeAt(2); }, 1000);Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote