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

TreeListView with LightSwitch problem

0 Answers 49 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
WorkMan
Top achievements
Rank 1
WorkMan asked on 11 Jul 2013, 10:13 AM
I want to use the TreeListView control with LightSwitch where I have a single table with self-referencing.
However, every time I run the program an exeption is thrown saying:"It is not valid to execute the operation on the current thread"

I think that the problem is that LightSwitch is trying to load children data on the UI thread
This is my XAML:
<telerik:RadTreeListView  x:Name="_radTreeListView" ItemsSource="{Binding Value.RootAccounts}"  >
        <telerik:RadTreeListView.ChildTableDefinitions >
            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
        </telerik:RadTreeListView.ChildTableDefinitions>
</telerik:RadTreeListView>

When I remove the ItemsSource property from the TreeListViewTableDefinition
, the Root nodes (from Value.RootAccounts) are displayed correctly.

however the TreeView is working with LightSwitch because it support LoadOnDemand, but The TreeListView does not have this property and seem that it support of the "Load On Demand" is different from the TreeView...

No answers yet. Maybe you can help?

Tags
TreeListView
Asked by
WorkMan
Top achievements
Rank 1
Share this question
or