Closing Dynamic Tabs

5 posts, 0 answers
  1. Ian Wells
    Ian Wells avatar
    25 posts
    Member since:
    Jul 2009

    Posted 18 Mar 2010 Link to this post

    Hi Folks,

    I dynamically build RadTabs for user search results. However, I want to be able to let the user close a tab by just clicking on an 'X' icon. Is this possible? Currently the user can close tabs by clicking on a button in a toolbar which closes the selected tab, but this is not ideal. This is done with the following code:

    RadTab selectedTab = this.rtsResultSet.SelectedTab; 
    this.rtsResultSet.Tabs.Remove(selectedTab); 
     
    int tabCount = this.rtsResultSet.Tabs.Count; 
    this.rtsResultSet.SelectedIndex = (tabCount - 1); 


    I also need the removing of a tab to trigger a server side event.

    Cheers,
    Ian
  2. Yana
    Admin
    Yana avatar
    5030 posts

    Posted 18 Mar 2010 Link to this post

    Hi Ian Wells,

    Please check this online demo which demonstrates the needed approach.

    All the best,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Ian Wells
    Ian Wells avatar
    25 posts
    Member since:
    Jul 2009

    Posted 18 Mar 2010 Link to this post

    Hi Yana,

    Thanks for your reply but this link does work!

    Ian
  4. Ian Wells
    Ian Wells avatar
    25 posts
    Member since:
    Jul 2009

    Posted 18 Mar 2010 Link to this post

    Actually it's okay thanks. I have found this example in my Telerik install,

    Thanks for your help
  5. Yana
    Admin
    Yana avatar
    5030 posts

    Posted 18 Mar 2010 Link to this post

    Hi Ian Wells,

    I'm sorry here is the correct link.

    Sincerely yours,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top