Columns Collection Binding

2 posts, 0 answers
  1. Paul
    Paul avatar
    24 posts
    Member since:
    Jul 2010

    Posted 26 Jul 2011 Link to this post


    I am planning on using a RadTreeListView SL control in a form we're creating. It is a *very* dynamic form in terms of its data.

    Is there an example of how I can establish the binding for the columns of the control and use a collection of some sort exposed by my view model ?...

    For example...
    <telerik:RadTreeListView.Columns Binding="{Path=MyColumnCollection}">
    public class MyViewModel
        public List<GridViewDataColumn> MyColumnCollection;
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 26 Jul 2011 Link to this post

    Hi Paul,

    The 'Columns' property is read-only and cannot be set from markup. 

    You will need to add the columns from code-behind, which is explained here.

    I hope this helps.

    Best wishes,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top