Set default tab at design time

4 posts, 1 answers
  1. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 23 Nov 2010 Link to this post

    Hi Guys,

    RE: TabStrip 2009 Q2

    Sorry if I am being a bit of a dunce, but how do you select the default tab at DesignTime? I can't see a way at the moment and am having to resort to doing it in code with:

    tabMenu.SelectedTab = tabMenu_BlahTabItem

    I have also tried leaving the tab I want to be the default tab selected when I close the form in DesignTime, but that does not appear to work. I am assuming the IsSelected property is readonly, as I can't change that either.

    Thanks in advance,
    Duane.
  2. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 25 Nov 2010 Link to this post

    Anyone? :o)
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 25 Nov 2010 Link to this post

    Hi Duane,

    Thank you for the question.

    In regards to RadTabStrip, the selected tab depends on the last tab item where you have placed a control or where you have modified the size/location of a control. You can set the selected tab explicitly by setting the SelectedTab property programmatically just like you did.

    I would suggest using RadPageView control instead of RadTabStrip. The item that you will get selected with RadPageView is the one selected at design-time. Please note that RadPageView was introduced in Q2 2010 release, so you will need to update your Telerik version. In addition, the new Q3 2010 released two weeks ago contains many improvements and fixes throughout the whole suite. You can refer to our Release Notes for additional information.

    Should you require a quicker response, you may consider purchasing one of our licenses. The support tickets that you submit from a licensed account are reviewed with higher priority than the regular tickets and the forum threads. For additional information about the available support options, please refer to this link.

    Should you need additional assistance, feel free to contact us.

    All the best,
    Nikolay
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
  5. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 26 Nov 2010 Link to this post

    Hi Nikolay,

    Thanks for that. I'll give that a go.

    We can't really upgrade to 2010 controls at present, as when we downloaded the latest demo and tried to swap out the dll, there were far too many breaking changes. (Our application has 5 windows applications within it, with anywhere between 5 and 250 forms in each windows application!)

    Thanks again.

    Best regards,

    Duane

Back to Top