Hi,
I've bound my model's IsSelected property to the TreeListViewRow's IsSelected property. The problem is that if I have a long list of items, the user can select the first, then scroll down to the bottom and Shift+Click the last to select them all. But only some of my model objects get their IsSelected flag set. It's mostly just the model objects that are visible. I suspect the problem is caused by virtualization being turned on. There's no TreeListViewRow for most of the items, so their IsSelected flags don't get set.
So how do I get my IsSelected flag set for virtualized rows?
My current binding is:
Thanks,
Bob
I've bound my model's IsSelected property to the TreeListViewRow's IsSelected property. The problem is that if I have a long list of items, the user can select the first, then scroll down to the bottom and Shift+Click the last to select them all. But only some of my model objects get their IsSelected flag set. It's mostly just the model objects that are visible. I suspect the problem is caused by virtualization being turned on. There's no TreeListViewRow for most of the items, so their IsSelected flags don't get set.
So how do I get my IsSelected flag set for virtualized rows?
My current binding is:
<Style TargetType="{x:Type telerik:TreeListViewRow"> <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}"/>
</Style>Thanks,
Bob