Forum Discussion

vish_borade's avatar
vish_borade
Occasional Contributor
11 years ago

Access GridControl column/cell ID in JavaScript

Hi,

I am testing a Syncfusion GridControl application using TestComplete testing tool .


As a part of it I need to access Id's of grid columns in JavaScript. I have been trying to figure out


a way to dot it for last 2 days. But there seems to be simply no way to achieve it.


I have carefully gone through all the API docs and other material but can't find a method or property


that exposes cell ID and I am really stuck.


Can anyone please point me to what I am missing here.


Many thanks in advance.

2 Replies

  • vish_borade's avatar
    vish_borade
    Occasional Contributor
    The query above might sound silly but i would really appreciate some help.

     


    When i try to do something like,


    gridcontrol.Item(x, y).id = 'testId';


     


    I get an error 'object doesn't support property'.


    Even,


     gridcontrol.Item(x, y).wId = 'testId';


    is not working.


     


    Is there any way to assign an Id to grid column?


     


    Thanks


    Vishwajeet


     

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Vish,


     


    I'm not sure whether you can set the ID from TestComplete, but there should be a control's native property to get the ID. Try exploring the control in TestComplete's Object Browser. To see all properties, make sure that you are using the Advanced View mode and showing hidden properties is allowed in TestComplete. Please refer to the "Basic and Advanced View Modes" article for details.