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

[Solved] Solution for Binding to Jagged Array

1 Answer 147 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shawn
Top achievements
Rank 1
Shawn asked on 22 Jun 2013, 03:25 AM
I am trying to get the Grid to bind to a collection of items (using an item template in each column). I am happy to build the column definitions myself. I can even force it into a form that works but the nature of the array is variable so I can't just build classes.  Essentially I am asking if we can bind to things like ExpandoObjects, dynamic types or something similar that I can build on the fly.

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 24 Jun 2013, 09:58 AM
Hello,

Thank you for your question.

The RadGrid control supports binding to dynamic objects and for your convenience I have attached a project that demonstrates how to do that.

Please note that the schema of the underlying data is retrieved from the first object - e.g. number of properties, data type of each property, etc.

I hope this was useful and don’t hesitate to contact us again if you need further assistance.

Regards,
Rositsa Topchiyska
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Shawn
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or