Completed
Last Updated: 26 May 2020 08:34 by ADMIN
Release LIB 2020.2.525 (5/26/2020)
Petar
Created on: 28 Feb 2020 09:55
Category: TreeView
Type: Bug Report
2
TreeView: Unexpected multiple selection in Single selection mode after combination of select and collapse/expand in virtualized treeview

Select nested item in virtualized treeview with single selection mode.

Collapse its parent. Select item in the level of the parent. Expand the parent and notice two items are visually selected.

Expexted : only the last selected item with mouse should be visually selected.

Workaround:

private void TreeView_ItemPrepared(object sender, RadTreeViewItemPreparedEventArgs e)
{
    if ((e.PreparedItem.IsSelected == true && this.TreeView.SelectedItem != null && this.TreeView.SelectedItem != e.PreparedItem.Item))
        e.PreparedItem.IsSelected = false;
}
0 comments