Check to see if tab already exists

2 posts, 1 answers
  1. Shawn Currie
    Shawn Currie avatar
    11 posts
    Member since:
    Jul 2009

    Posted 12 Sep 2009 Link to this post

    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?

  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2009 Link to this post

    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

Back to Top