This is a migrated thread and some comments may be shown as answers.

RadGridView Cell AutomationElement not giving correct Header using TableItemPattern

3 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 30 Nov 2016, 10:36 AM

Hi,

   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

Sort by
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.
0
Dharmavaram
Top achievements
Rank 1
answered on 05 Dec 2016, 03:39 AM

Hi Stefan,

    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. 

Let me know still you need information.

Regards,

Nagasree

0
Stefan
Telerik team
answered on 07 Dec 2016, 08:55 AM
Hello Nagasree,

Thanks for the update.

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.
Tags
GridView
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Dharmavaram
Top achievements
Rank 1
Share this question
or