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

[Solved] Nested telerik:RadGridView.ChildTableDefinitions

1 Answer 214 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.
kannan
Top achievements
Rank 1
kannan asked on 04 Oct 2010, 02:42 PM
Hi,
   How to dynamically add ChildTableDefinitions inside RadGridView_DataLoading..and how to create nested ChildTableDefinitions.....

below my source code...

 

 

private void RadGridView1_DataLoading(object sender, GridViewDataLoadingEventArgs e)

 

{

 

 

 

var childCustomerDefinition = new GridViewTableDefinition();

 

childCustomerDefinition.Relation =

 

new PropertyRelation("tm_TaskId");

 

 

 

 

 

var childM2MValues = new GridViewTableDefinition();

 

childM2MValues.Relation =

 

new PropertyRelation("tm_ParentTaskID");

 

childCustomerDefinition.ChildTableDefinitions.Add(childM2MValues);

dataControl.ChildTableDefinitions.Add(childCustomerDefinition);

 

}


1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 07 Oct 2010, 11:18 AM
Hello kannan,

You may define the definitions for the nested grids in the initial constructor. I am sending you a sample project illustrating the proposed solution.
In case it does not correspond to your exact requirements, I would need more details about your application so that I could provide you with a more appropriate solution.
 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
kannan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or