We are trying to get the columnHeaderProperty using TableItemPattern on the Automationelement of cell inside RadGridView but it is giving wrong header value. It is giving the next header value. Here RawGridView have columns and rows virtualization support enabled.
Regards,
Nagasree.
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 02 Dec 2016, 03:15 PM
Hi Nagasree,
In order to avoid any misunderstandings, may I kindly ask you to provide some additional information regarding your exact setup? In what manner is the header of the cell obtained? Generally, all information that you consider as relevant would be useful.
Regards,
Stefan X1
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
I am trying to get columnHeader using automation element. I will try to explain it with example. I am getting the automation element of grid cell using from point API of AutomationElement.FromPoint(x,y).Later I am getting the columnHeader of that cell using TableItemPattern.GetColumnHeaderProperty() available on cell AutomationElement. Here it is giving not respective columnheader name but giving other column header. I feel patterns are not working as expected on RadGridview.
I tried to replicate such behavior on my end, but to no avail. Can you please check out the attached image demonstrating my test? May I also ask you to double check whether you are clicking the correct cell(the one that you expect to get the header of)?
Regards,
Stefan X1
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.