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

can I set a login tab to control other tabs

1 Answer 34 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 24 Feb 2011, 05:37 PM
Silverlight tabcontrol is a very cool tool. now I have three tabs under same tabcontrol. 
first tabitem, is a login, second and third tabs are related information. basically, what I am trying to do is once a user logs himself in, the other two tabs will be activated and display corresponding information.

How can I do this? I do not know how to pass an event through tab control and I do not want to make separate pages. thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 01 Mar 2011, 10:20 AM
Hi James,

You have plenty of options to do that. Simply, you could modify the TabControl's Items collection (or ItemsSource when using MVVM and data binding) when you need to activate (add) new tabs and deactivate (remove) current one. By adding/removing tabs dynamically you have a great flexibility what would be displayed or active on the screen. Alternatively you could set the RadTabItem Visibility property to Collapsed or Visible and simulated the add/remove approach.

In addition you may employ data binding and MVVM to populate the data and communicate between different tabs more easily.

Greetings,
Hristo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TabControl
Asked by
James
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or