Cells Selection and Node expansion

3 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 24 May 2011 Link to this post

    Hello,

    I'm using RadTreeLiestView with SelectionMode property set to Multiple and SelectionUnit property set to Cell. I've noticed that when user expands or collapse some node, selection is lost, that's after a node expand/collapse SelectedCells property on TreeListView is empty.

    I'm providing users with a toggle button, when checked, TreeListView enters in a "selection model", that's settiing SelecctionMode to Multipe and SelectionUnit to Cell, when unchecked, SelectionMode is set to "Single" and SelectionUnit is set to FullRow. Users would like to collapse/expand node to locate those cell they want to select.

    Is there any way to accomplish this requirement?
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 25 May 2011 Link to this post

    Hi Daní,

    Unfortunately at the moment there is not way to change this behavior. We will try to improve this in the future but right now I cannot share any specifics.  


    Kind regards,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 25 May 2011 Link to this post

    Hi Milan,

    Thanks for your response. I've tried to develop a behavior for the RadTreeListView. This behaviors subscribes to RowIsExpandedChanging and RowIsExpandedChanged events. When first event is handled, this behavior stores the current selected cells (I'm working with SelectionUnit property set to Cell). Then when RowIsExpandedChanged event is handles, the behavior restores cell selected with the stored values. Right now this behavior is not working as I expected, when I collapse a row (node) the behavior can keep selected those cells not present in collapse node hierarchy, but when expanding the row again, previously selected cells in the row hierarchy are not longer selected, RadTreeListView has lost them.

    Any Idea?
Back to Top