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

How to access child grid in GridView Hierarchy

0 Answers 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chetan
Top achievements
Rank 1
Chetan asked on 23 Nov 2010, 02:27 PM
hello telerik team,

i am having one grid in side this there is another grid (Hierarchy). Main Grid i am able to bind.

my requirement is

1. i need to bind child grid(Hierarchy) at runtime. I am not able to access child grid at runtime . i have tried FindChildByType, ChildType etc but not able to access. 
could you please tell me how to get child grid (Hierarchy) at runtime?

2. in child grid having Gridcheckboxcolumn, runtime i need to check selected items as per selected items i have to do some operation.

pls check below code and find attached screen shot for UI design.

Is it possible for you to send some demo with source code?

 

 

<telerik:RadGridView x:Name="gridViewDefaultTask"

 

 

AutoGenerateColumns="False"

 

 

ScrollViewer.VerticalScrollBarVisibility="Visible"

 

 

ShowColumnHeaders="True"

 

 

CanUserSortColumns="True"

 

 

GridLinesVisibility="Horizontal"

 

 

ShowGroupPanel="False"

 

 

CanUserSelect="False"

 

 

RowIndicatorVisibility="Collapsed"

 

 

CanUserReorderColumns="False">

 

 

 

 

<telerik:RadGridView.ChildTableDefinitions>

 

 

 

<telerik:GridViewTableDefinition>

 

 

 

<telerik:GridViewTableDefinition.Relation>

 

 

 

<telerik:PropertyRelation  />

 

 

 

</telerik:GridViewTableDefinition.Relation>

 

 

 

</telerik:GridViewTableDefinition>

 

 

 

</telerik:RadGridView.ChildTableDefinitions>

 

 

 

 

<telerik:RadGridView.Columns >

 

 

 

<telerik:GridViewDataColumn

 

 

DataMemberBinding="{Binding FeatureName}"

 

 

Header="Feature Level" Width="*" />

 

 

 

</telerik:RadGridView.Columns>

 

 

 

<telerik:RadGridView.HierarchyChildTemplate >

 

 

 

<DataTemplate>

 

 

 

 

<telerik:RadGridView x:Name="gridViewFeature"

 

 

CanUserFreezeColumns="False"

 

 

AutoGenerateColumns="true"

 

 

ShowGroupPanel="False" IsReadOnly="True">

 

 

 

<telerik:RadGridView.Columns >

 

 

 

<telerik:GridViewDataColumn

 

 

DataMemberBinding="{Binding DefaultTaskName}"

 

 

Header="Task Name" />

 

 

 

<telerik:GridViewDataColumn

 

 

DataMemberBinding="{Binding DisciplineAlias}"

 

 

Header="Discipline" />

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

 

</DataTemplate>

 

 

 

</telerik:RadGridView.HierarchyChildTemplate>

 

 

 

 

</telerik:RadGridView>

 



Waiting for your reply

thnks
Csingh
Tags
GridView
Asked by
Chetan
Top achievements
Rank 1
Share this question
or