Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Add / remove tabs

    Hi,

    we are using smartgwt pro 3.0 version.

    In our application we are adding and removing tab dynamically based on user click. Can we add and remove the same Tab instance? (In example http://www.smartclient.com/smartgwt/...abs_add_remove everytime you are creating a new instance of tab before adding it). I tried adding and removing the same instance of Tab but it is not working.

    Thanks
    Last edited by fairoz172; 6 Feb 2013, 02:12.

    #2
    We're not sure why you'd be concerned about the same tab instance, but to efficiently add and remove a tab that will have the same pane, the important thing is set destroyPanes:false to avoid automatic destruction of the pane you mean to re-use. If the pane gets destroyed and you try to reuse it, that would lead to errors.

    If the error appears to be something else, please show code that reproduces the issue, and fill in other details requested by the forums.

    Comment

    Working...
    X