can I set a login tab to control other tabs

2 posts, 0 answers
  1. James
    James avatar
    1 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    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.
  2. Hristo
    Hristo avatar
    352 posts

    Posted 01 Mar 2011 Link to this post

    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.

    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!
  3. DevCraft R3 2016 release webinar banner
Back to Top