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

How bind relatived event in treelistview in ViewModel of MVVM

2 Answers 44 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Lior
Top achievements
Rank 1
Lior asked on 25 Oct 2012, 09:31 AM
Hi,
I got a dynamically creating columns in treeListview. But some of the list event is written in ***.xaml.cs. In our solution, we adopt mvvm,
How should we set the event in ViewMode like "RowLoaded" and "RowIsExpandedChanging" event. thanks a lot.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Oct 2012, 09:34 AM
Hi,

 The right approach for events in reusable MVVM way are attached behaviors. You can check for example this demo

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lior
Top achievements
Rank 1
answered on 30 Oct 2012, 03:27 AM
Hi vlad,
Thank you, After research, We adopt another solution for this issue. thank you again.
Tags
TreeListView
Asked by
Lior
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Lior
Top achievements
Rank 1
Share this question
or