This is a migrated thread and some comments may be shown as answers.

Closing Dynamic Tabs

4 Answers 114 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ian Wells
Top achievements
Rank 1
Ian Wells asked on 18 Mar 2010, 11:40 AM
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

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Mar 2010, 02:59 PM
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.
0
Ian Wells
Top achievements
Rank 1
answered on 18 Mar 2010, 03:43 PM
Hi Yana,

Thanks for your reply but this link does work!

Ian
0
Ian Wells
Top achievements
Rank 1
answered on 18 Mar 2010, 03:46 PM
Actually it's okay thanks. I have found this example in my Telerik install,

Thanks for your help
0
Yana
Telerik team
answered on 18 Mar 2010, 03:50 PM
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.
Tags
TabStrip
Asked by
Ian Wells
Top achievements
Rank 1
Answers by
Yana
Telerik team
Ian Wells
Top achievements
Rank 1
Share this question
or