The selected rows of TreeListView are not returned when calling SelectionPattern.GetSelection method.
The problem can be reproduced with RadGridView as well.
I found a bug when use MergeCells in grid view and tree list view, I am the license account, my support is out of date,But I still want to feadback the bug to you , I make a vedio in attachment
When use in radtreelistview , I can not explict set the MergedCellsStyle, maybe MergedCellsStyleSelector also have the bug.I just try MergedCellsStyle.
The JAWS screen reader cannot read the RadTreeListView and also its rows and cells.
This reproduces after the 2019.3.917 release.
To work this around create a custom RadTreeListViewAutomationPeer:
public class CustomTreeListView : RadTreeListView
{
protected override AutomationPeer OnCreateAutomationPeer()
{
return new CustomTreeListViewAutomationPeer(this);
}
}
public class CustomTreeListViewAutomationPeer : RadTreeListViewAutomationPeer
{
public CustomTreeListViewAutomationPeer(RadTreeListView owner)
: base(owner)
{
var methodInfo = typeof(RadTreeListViewAutomationPeer).GetMethod("GetItemPeers", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
methodInfo.Invoke(this, null);
}
protected override List<AutomationPeer> GetChildrenCore()
{
var frameworkPeer = new FrameworkElementAutomationPeer((FrameworkElement)this.Owner);
return frameworkPeer.GetChildren();
}
}
this
.RadTreeListView.SelectedCells.Clear();