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

[Solved] Check to see if tab already exists

1 Answer 197 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Shawn Currie
Top achievements
Rank 1
Shawn Currie asked on 12 Sep 2009, 04:21 PM
Hi Folks! I'm hoping someone can point me in the right direction.

I have a tabstrip with mulitpage implemented into my application. My pageviews are getting created dynamically. I'm loading a user control in each of the tabs.

The tabs are created based on a RADgrid. When a user clicks on a RADgrid row, I create a tab. The tab name is assigned based on a column name of the RADgrid.

What is the easies way to check if the TAB I'm trying to create already exists? I thought about creating an array and storing each tab name in it, then I can just check the array at the time of the tab creation, but is this the best way to implememt what I'm trying to do?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Sep 2009, 07:53 AM
Hello Shawn,

You can make use of the FindTabByText method of the RadTabStrip to find if the Tab with the required text already exists. The following document will help you find out more on the methods used for accessing the tabs in a tab strip:
Accessing Tabs

Thanks
Princy.
Tags
TabStrip
Asked by
Shawn Currie
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or