Hi,
I have set up a rowstyle for my radtreelistview,
however, the rows without any children are still displayed without the expand arrow infront of them
the reason for this is because I have implemented the loadondemand or lazy loading function using MVVM in the control
in order to make all the rows expandable, i have put a dummy child in each row's view model object
however, this throws me object not initialised error when I tried to filter the rows
the code below describe how i set up the rowstyle
please can you advise what was wrong? note I don't want to set IsExpandable as shown in the treelistview loadondemand demon as I'm using MVVM and want to keep the code behind clean
btw, I'm using radcontrol q1 2011
Cheers
I have set up a rowstyle for my radtreelistview,
however, the rows without any children are still displayed without the expand arrow infront of them
the reason for this is because I have implemented the loadondemand or lazy loading function using MVVM in the control
in order to make all the rows expandable, i have put a dummy child in each row's view model object
however, this throws me object not initialised error when I tried to filter the rows
the code below describe how i set up the rowstyle
<telerik:RadTreeListView.RowStyle> <Style TargetType="{x:Type telerik:TreeListViewRow}"> <Setter Property="IsExpandable" Value="True" /> <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> <Setter Property="FontWeight" Value="Normal" /> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="FontWeight" Value="Bold" /> </Trigger> </Style.Triggers> </Style> </telerik:RadTreeListView.RowStyle>please can you advise what was wrong? note I don't want to set IsExpandable as shown in the treelistview loadondemand demon as I'm using MVVM and want to keep the code behind clean
btw, I'm using radcontrol q1 2011
Cheers
