Tim
Posted
on Sep 28, 2009
(permalink)
Hello,
Having some trouble with the tabcontrol.
I want to remember tab visibility and order. When the user closes the form I save the visible tabitems in a List<string> .
When the form gets loaded I would like to restore the tabs.
I can control the visibility of the tabs but I can’t find a way to restore the order.
Anybody got a suggestion?
Kind regards,
Tim van Rooijen
Reply
Answer
Robert
MVP
Posted
on Sep 30, 2009
(permalink)
Hey Tim,
The tab order of a RadTabStrip is determined by the order of the TabItems in the RadTabStrip.Items collection. In the following code, I save the tab order to a list then restore the tab order in radTabStrip1 based on that list.
I hope this helps.
- Robert
Reply
Martin Vasilev
Martin Vasilev
Posted
on Oct 1, 2009
(permalink)
Hi Robert,
Thank you for sharing your approach with us. I thing there is one more convenient solution -- using Queue<>. In that way you can very easily save and reproduce the TabItems and their order:
Greetings,
Martin Vasilev
the Telerik team
Reply
Tim
Posted
on Oct 1, 2009
(permalink)
Hello,
Thanks for the reply's.
It worked!. I choice for the first approach because i wanted to save the order in a string.
Greetings
Tim
Reply