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

Adding TabItem w/o activating it?

1 Answer 28 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Charles Bates
Top achievements
Rank 1
Charles Bates asked on 27 Jun 2011, 09:34 PM
Hello,
We have a multi-user application.
User A can add a tab item to the TabControl, and that information is sent to the server.
When user B receives an update, the app will create a new tab (the one user A added).
However, we don't want to activate the new tab, forcing the focus away from what user B was looking at.

How can we add a new RadTabitem to the RadTabControl w/o the new TabItem becoming current?

Thanks for any tips...
Telerik Controls 2010.1.0422.1030

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 30 Jun 2011, 02:00 PM
Hello Charles Bates,

Can you please elaborate on your scenario more? Because by default when a RadTabItem is added to the RadTabControl.Items collection, it is only selected if its IsSelected property is set to true.

So if you don't want to select a newly added item you can set its IsSelected property to false. But since I am not sure how your adding logic is implemented, I am not sure what might be causing the issue.

Best wishes,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabControl
Asked by
Charles Bates
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or