How to select an item with index of -1

6 posts, 0 answers
  1. Mukunda Manoj
    Mukunda Manoj avatar
    35 posts
    Member since:
    Apr 2006

    Posted 01 Mar 2007 Link to this post

    I want no item of the tabstrip to be selected on form load and the selection would be by click of mouse only.
    In the web application, i could mention selectedindex=-1 in the aspx for the RadTabStrip.
    In Forms Appn, if i try something like
    TabStrip1.SelectedTab = TabStrip.items.item(-1), it throws an exception as i tried to access a tab with -1 index, which is not available.
    Is there an alternative to achieve the above?

    I guess Hierarhcical TabStrip would be available with the next months release of RadControls for winforms.
    [It would be great if there is unSelectChildren property in the release, similar to Asp.net RadTabStrip.]

    Thanks
    Mukunda.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 01 Mar 2007 Link to this post

    Hi Mukunda,

    There is an easy way to achieve the behavior you are after. You can handle the load event of your application form and programmatically set the currently selected tab to null with the following code in your event handler:

    this.radTabStrip1.SelectedTab = null;
     
    BTW, how is your evaluation going? I see that you have been testing the controls for nearly three months now. We will greatly appreciate your feedback on the evaluation.


    Kind regards,
    Ray
    the telerik team
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mukunda Manoj
    Mukunda Manoj avatar
    35 posts
    Member since:
    Apr 2006

    Posted 02 Mar 2007 Link to this post

    I'm looking forward for some new features and improvement in performance in the next release of the winforms to purchase the license.
    I've been using atleast 10 of the contols from RAD Controls ASP.NET Suite for around an year now and trying to look for similar features in the winforms suite as well.
    Also, the controls looks to be a bit heavy.
    Overall, the controls are simpler to use and save a lot of development time.
  5. Mike
    Admin
    Mike avatar
    640 posts

    Posted 02 Mar 2007 Link to this post

    Hi Mukunda,

    Thank you for your prompt evaluation and feedback. We will be very happy to fulfill your expectations and deliver an even more suitable and easy to use products in the second half of April. In the meanwhile, feel free to post any comments and suggestions here.
     

    Kind regards,
    Mike
    the telerik team
  6. Mukunda Manoj
    Mukunda Manoj avatar
    35 posts
    Member since:
    Apr 2006

    Posted 02 Mar 2007 Link to this post

    I'm populating the tabs from database. If the text has &, it shows as _ on the tab. I'm not sure if there are any other special characters with this kind of behaviour. But for Ampersand case, if i replace in database with &&, it shows as as a single &.
  7. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 02 Mar 2007 Link to this post

    Hello Mukunda,

    Yes, the "&" is the only character treated in this manner. This character is used by Windows to represent keyboard accelerators. A string that includes an ampersand "&" before the letter will be treated as a shortcut. This is by design and cannot be overridden.

     
    Kind regards,
    Tsvetan Raikov
    the telerik team
Back to Top
UI for WinForms is Visual Studio 2017 Ready