How to select row cell value in RadGridview

1 posts, 0 answers
  1. Ramesh
    Ramesh avatar
    22 posts
    Member since:
    Oct 2013

    Posted 04 Dec 2013 Link to this post

      Hi ,

       I am using RadGrid View  and  GridViewToggleRowDetailsColum,
       when i click on + symbol it exapanding with rows , my requirment is when i click on + symbol i need to fetch the row values which values will be used in code behind. 

     

     
      bellow attchment can give you more clarity  what I need to complit , when select  a row which contain year column value as 2014 , that 2014 i need to use in code behind how can i complit it
       

     

     

     

    <telerik:RadGridView x:Name="dgStudentViewSummary" DataContext="{StaticResource VMKEY}" GroupRenderMode="Flat" ItemsSource="{Binding ClientModel }">
    <telerik:RadGridView.Columns>
    <telerik:GridViewToggleRowDetailsColumn />
    <telerik:GridViewDataColumn Header="Student Name" Width="150" DataMemberBinding="{Binding StudentName}" TextAlignment="Right"/>
     
    <telerik:RadGridView.RowDetailsTemplate>              
                    <DataTemplate>                   
                        <telerik:RadTabControl x:Name="RadTabControl1"
                                                                            Width="1550"
                                                                            HorizontalAlignment="Left"
                                                                            Margin="10"
                                                                            VerticalAlignment="Center">
                             
                            <telerik:RadTabItem Header="Student Details">
     
                                <telerik:RadGridView x:Name="dgMasterStudentViewSummary" DataContext="{StaticResource VMKEY}" GroupRenderMode="Flat"
                                                           ItemsSource="{Binding ClientModel }"
                                                         LoadingRowDetails="dgMasterStudentViewSummary_LoadingRowDetails_1"
                                                                 VerticalAlignment="Top" MaxHeight="700"
                                                                 Margin="2"                                                           
                                                                   IsReadOnly="True">
     
                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewToggleRowDetailsColumn/>
                                        <telerik:GridViewDataColumn Header="Year"  Width="150" DataMemberBinding="{Binding Year,Mode=TwoWay}" TextAlignment="Right"/>
                                        <telerik:GridViewDataColumn Header="Address" Width="150" DataMemberBinding="{Binding ClientName}" TextAlignment="Right"/>
                                    </telerik:RadGridView.Columns>
                                     
                                    <telerik:RadGridView.RowDetailsTemplate>
                                        <DataTemplate>
                                        <sdk:Frame x:Name="lastYear" Grid.Row="1" >
                                          some othe controls
     
                                         </sdk:frame>                                  
                                            
                                        </DataTemplate>
                                    </telerik:RadGridView.RowDetailsTemplate>                               
                                </telerik:RadGridView>
                            </telerik:RadTabItem>
    </telerik:RadGridView.RowDetailsTemplate

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


      

        

Back to Top