Approved
Last Updated: 25 Oct 2019 08:12 by ADMIN
Martin Ivanov
Created on: 25 Oct 2019 08:09
Category: TreeListView
Type: Bug Report
1
TreeListView: JAWS cannot read the control cells and rows

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();
	}
}

0 comments