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

Naming within RadFluidContentControl

1 Answer 49 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Cass
Top achievements
Rank 1
Cass asked on 13 Jan 2010, 05:17 PM

I am creating an editable Employee directory using RadTileView. I have named several TextBoxes (x:Name) within RadFluidContentControl.LargeContent. My main problem is that I can't figure out how to access the values of the fields I named from MainPage.xaml.cs because they are embedded in Telerik controls....

Any help would be much appreciated. I don't think I can do the obvious workaround of a two-way binding because my ItemsSource is an ObservableCollection of Employee objects. I would rather not pass back to the database the complete set of Employee information; I would rather know which Employee information has been changed and pass that sole Employee's information to the database.

Thanks!

----

 

 

 

<telerikNavigation:RadTileView x:Name="tileView1" Grid.Row="2" ItemsSource="{Binding Employees, Mode=TwoWay}">  
 
<telerikNavigation:RadTileView.ItemTemplate> 
<DataTemplate> 
<TextBlock Text="{Binding Name}" FontWeight="Bold"/>  
</DataTemplate> 
</telerikNavigation:RadTileView.ItemTemplate> 
 
 
<telerikNavigation:RadTileView.ContentTemplate> 
<DataTemplate> 
<telerik:RadFluidContentControl ContentChangeMode="Manual" State="Normal">  
 
....  
 
<telerik:RadFluidContentControl.LargeContent> 
...  
<StackPanel Orientation="Horizontal" Grid.Row="1">  
<TextBlock Text="Team: " FontWeight="Bold" Style="{StaticResource Label}"/>  
<TextBox x:Name="department" Text="{Binding Department, Mode=TwoWay}" Style="{StaticResource TextInput}" /> 
</StackPanel> 
</telerik:RadFluidContentControl.LargeContent> 
 
 
</telerik:RadFluidContentControl> 
</DataTemplate> 
</telerikNavigation:RadTileView.ContentTemplate> 
 
 </telerikNavigation:RadTileView> 
 

1 Answer, 1 is accepted

Sort by
0
Cass
Top achievements
Rank 1
answered on 13 Jan 2010, 10:34 PM
Nevermind! Solved the problem by Tagging a Button within the view with the information I needed, and then retrieved the information I needed from the eventhandler.
Tags
TileView
Asked by
Cass
Top achievements
Rank 1
Answers by
Cass
Top achievements
Rank 1
Share this question
or