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

Columns Collection Binding

1 Answer 44 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Jul 2011, 08:45 AM
Hi,

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;
}

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 26 Jul 2011, 09:40 AM
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,
Ross
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!

Tags
TreeListView
Asked by
Paul
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or