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

How to select an item with index of -1

5 Answers 118 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mukunda Manoj
Top achievements
Rank 1
Mukunda Manoj asked on 01 Mar 2007, 04:27 PM
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.

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 01 Mar 2007, 05:31 PM
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
0
Mukunda Manoj
Top achievements
Rank 1
answered on 02 Mar 2007, 09:55 AM
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.
0
Mike
Telerik team
answered on 02 Mar 2007, 11:56 AM
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
0
Mukunda Manoj
Top achievements
Rank 1
answered on 02 Mar 2007, 03:51 PM
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 &.
0
Jack
Telerik team
answered on 02 Mar 2007, 05:28 PM
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
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Mukunda Manoj
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Mukunda Manoj
Top achievements
Rank 1
Mike
Telerik team
Jack
Telerik team
Share this question
or