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

columns using XamlReader

1 Answer 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
CarlosLima
Top achievements
Rank 1
CarlosLima asked on 09 Dec 2010, 07:33 PM
Hi.
Is it possible to have a grid without columns and then load the columns structure (and properties) from a xaml using xamlreader and add them to the grid?

I've used this method with datatemplates but never for the grid or any other control's elements.

Our idea is to have little code on the application and receive the dynamic xml from an oracle DB allowing us to have dynamic columns with specific properties and all on a simple xml on the DB.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 10 Dec 2010, 05:59 PM
Hi Carlos,


You can load any well-formed XAML markup within the XamlReader.Load method and it will an object
that is the root of the corresponding object tree.

Attached is a very simple example that demonstrates this approach.

All the best,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
CarlosLima
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or