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

dynamic class binding

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 08 Sep 2011, 02:08 PM
Hello, here's my most complex question I've ever had to ask. We use just one grid in our app and build each instance of the grid dynamically, so all the columns etc are instructions that we send to the app at runtime. So our data binding classes are also created dynamically.

Im told by our c# guy that we cannot use dynamic data binding on grids that have a hierarchical structure. 

If that is the case, then would it be possible to have part of the hierarchical structure prebuilt, for example the keys that create the structure will be hard-coded. And then we dynamically build the rest of the grid and data binding? If this is possible, then could you please provide a brief example.

If we cannot do any of this dynamically, then do you have a suggestion on how we could solve the problem of creating a hierarchical structure dynamically at runtime using any of your tools.

Regards

Steven

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Sep 2011, 03:46 PM
Hello Steven,

 We believe that there will be no problem to build (and bind) the grid to dynamic hierarchy. For example:

var grid = new RadGridView();

grid.ChildTableDefinitions.Add(new GridViewTableDefinition() { Relation = new PropertyRelation("YourProperty") });


Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Steven
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or