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

Getting to items in a tabcontrol

1 Answer 59 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Keith Stephens
Top achievements
Rank 1
Keith Stephens asked on 11 Jun 2010, 06:04 PM
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">  
                      
                 
            </telerikNavigation:RadTabControl> 
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.
Keith.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 15 Jun 2010, 03:11 PM
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.
Tags
TabControl
Asked by
Keith Stephens
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or