Welcome Guest Search | Active Topics | Sign In | Register

Select Tabitem by CodeBehind Options
Drgiorgini
Posted: Monday, December 20, 2010 3:19:35 PM
Rank: Newbie
Groups: Member

Joined: 5/29/2010
Posts: 2
Hi all,
I have a question.
I have a tab strip with various TabItem that are autoselected via the parameter "AutoSelectSource".
I was wondering if it was possible to change or maintain the selection of a particular TabItem that it is not necessarily linked to a page: in practice, when i navigate to a page where the link is not present in my TabItem TabStrip, this selects the first automatically TabItem that in my case is represented by "Home".
I hope I was clear and I thank you in advance...
Bye
eo_support
Posted: Monday, December 20, 2010 4:26:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you can do that. You can just set the TabStrip's SelectedIndex to the value you wanted for that case. AutoSelectSource would not do anything if it can not find a match (it will modify your SelectedIndex if it does find a match).

Thanks!
Drgiorgini
Posted: Tuesday, December 21, 2010 3:14:15 AM
Rank: Newbie
Groups: Member

Joined: 5/29/2010
Posts: 2
Thanks first of all,
I have eg 3 TabItem: Home - History - Product
These tabs are tied with AutoSelectSource = "NavigateUrl" to various pages above.
Qunado example i browse a page that does not have his on TabItem, the selection is set to TabItem Home. But I would like to keep her locked up for Product...
Thanks again...
eo_support
Posted: Tuesday, December 21, 2010 8:52:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No. The TabStrip will not automatically do that for you. You will need to write code to do that.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.