Selecting first tab

2 posts, 0 answers
  1. Jerome
    Jerome avatar
    87 posts
    Member since:
    Aug 2010

    Posted 01 Aug 2011 Link to this post

    Is there any easy way to ensure at least one Tab is selected? My tabs are dynamic, and hide and show themselves based on stuff. I want the first tab to be selected, if no tabs are selected... preferably without lots of work =/
  2. Vladislav
    Vladislav avatar
    277 posts

    Posted 04 Aug 2011 Link to this post

    Hi Jerome,

    In order to select a particular RadTabItem, you can use the RadTabControl's "SelectedItem" and/or "SelectedIndex" properties. Thus you can easily set any tab you want to be selected whenever you wanted.
    In your case you can set the "SelectedIndex" to 0, in order to select the first RadTabItem.

    Please let us know if you need additional help on the subject.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top