Getting to items in a tabcontrol

2 posts, 0 answers
  1. Keith Stephens
    Keith Stephens avatar
    83 posts
    Member since:
    May 2010

    Posted 11 Jun 2010 Link to this post

    Hello all,

    I have inherited a work in progress silverlight app.  We are using silverlight 3 and wcf services.
    But my question is we are using a tabcontrol. All the tabs will have the same information on them you are just tabing throught agent names.

    On the tabs there are 5 grids, each of these grids are bound from one giant collection object that have collections inside of it.
    The tab also uses templates:
     <telerikNavigation:RadTabControl x:Name="tabControl1" 
                               ItemTemplate="{StaticResource AgentHeaderTemplate}" 
                               ContentTemplate="{StaticResource AgentContentTemplate}" 
                               Background="White" Margin="0,10,0,0">  
    The AgentContentTemplate has all the grids in it or on it. How can I get to my grids?

    My main goal is to have one save button that will save all information in all 5 grids.

    Thanks for any help or advice.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 15 Jun 2010 Link to this post

    Hi Keith Stephens,

    I am not sure if I understand your scenario correctly. What do you mean by "The AgentContentTemplate has all the grids in it or on it. How can I get to my grids "?

    If the RadTabControl is data bound to a business object and the AgentContentTemplate is a DataTemplate that defines Grids with controls that display the info from your business object, then you can use TwoWay data binding and implement INotifyPropertyChanged in the business classes.

    Then you can save all the data, even if there were changes in it, through the ItemsSource collection of the RadTabControl.

    To better illustrate this approach I prepared a sample project. Please take a look at it and let me know if this is what you had in mind. If not, can you please modify the project to reproduce your scenario and issues.

    Thank you in advance.

    Sincerely yours,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top