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

TabItem visibility

1 Answer 78 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.
Marek
Top achievements
Rank 1
Marek asked on 26 Nov 2007, 11:57 AM
Hi
I need to be able to hide and show tabs depending on various criteria.  I thought it would be enough to use Visibility = ElementVisibility.Hidden, which does indeed hide the tab, but its place is not taken up by the following tab. 

The functionality I need is that when tab1 is hidden, it is made invisible and for tab2 to move to the left, taking tab1's place.  When making it visible again I need the tab to appear again and for tab2 to be shifted to the right.

I've tried calling PerformLayout() without success.

Please could you tell me the official way of achieving this effect.

Best regards

Marek

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 26 Nov 2007, 03:56 PM
Hello Marek,

In your case, you should use the Collapsed state rather than the Hidden one.

The Hidden state means that the item is not shown but its bounds are still calculated in the layout logic. The Collapsed state is similar to an advanced hidden state, i.e the item is not shown and its bounds are not taken into account.

If you have futher questions, do not hesitate to contact us.

 
Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Marek
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or