Naming within RadFluidContentControl

2 posts, 0 answers
  1. Cass
    Cass avatar
    13 posts
    Member since:
    Jan 2010

    Posted 13 Jan 2010 Link to this post

    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> 
     
  2. Cass
    Cass avatar
    13 posts
    Member since:
    Jan 2010

    Posted 13 Jan 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top