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

How to select row cell value in RadGridview

0 Answers 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 04 Dec 2013, 12:56 PM
  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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


  

    

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Ramesh
Top achievements
Rank 1
Share this question
or