columns using XamlReader

2 posts, 0 answers
  1. CarlosLima
    CarlosLima avatar
    47 posts
    Member since:
    May 2010

    Posted 09 Dec 2010 Link to this post

    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.

  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Dec 2010 Link to this post

    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
Back to Top