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

Virtualizing keeps child items selected under collapsed parent

1 Answer 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kirk Quinbar
Top achievements
Rank 1
Kirk Quinbar asked on 11 Jan 2011, 06:06 PM

ok here is the scenerio. treeview is setup with databinding on a parent-child relationship. data context is a viewmodel. using containerdatabindings to set IsSelected TwoWay. virtualization is set to True due to the number of records we are bound to. with virtulizing turned on, the issue shown below occurs. if we turn off virtualizing then the issue goes away, meaning only one item is selected at a time. we need to support multiple items being selected but only when user holds down Ctrl key.

as shown in the attached screen captures:
- expand parent
- click on a child item in parent to select it.
- collapse the parent
- click on another parent
- expand the original parent you had chosen
- you should now see two items selected in treeview. this is not ideal. there should only be the last item clicked on selected.

Is this by design of how virtualizing works or is this a bug? The treeview is supposed to unselect all selected items behind the scenes as you click on items, but that part seems to stop working on parents that have been collapsed. If we are going to use virtualizing, is there something we need to do in codehind to make sure only one item is selected at a time except if user is pressing Ctrl?

Kirk

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 12 Jan 2011, 04:07 PM
Hello Kirk Quinbar,

This is a know issue that is logged in our public issue tracking system. You can vote for it or track its status through the following link: http://www.telerik.com/support/pits.aspx#/public/silverlight/4597

You could use the tree view in non virtualized mode or try to clean the selection manually (which is pretty inconvenient).

Please let us know if the provided workaround is not applicable.

All the best,
Hristo
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
TreeView
Asked by
Kirk Quinbar
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or