Virtualizing keeps child items selected under collapsed parent

2 posts, 0 answers
  1. Kirk Quinbar
    Kirk Quinbar avatar
    48 posts
    Member since:
    Nov 2007

    Posted 11 Jan 2011 Link to this post

    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

  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 12 Jan 2011 Link to this post

    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>>
  3. DevCraft banner
Back to Top