Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
How to add 'id' tag to IgrDataGrid and to it's rows and cells?
posted

Hi

I want a small clarification on one of the use case related to IgrDataGrid (https://www.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid/overview).

I have used IgrDataGrid in-order to display the data on the UI in tabular form(and I have multiple grids on the UI at the same time).

So now I need to add some functionality on a particular grid with the help of it's 'id' tag(by using it as a differentiator between the grids) and also want to implement something on some particular rows and cells with the help of it's 'id' tag.

Our use case is that we want to perform some automation testing and for that we need some type of ID or tag Value associated with every grid, row and cell.

So, for this I need to know how can we add an 'id' tag to the whole IgrDataGrid and also to it's rows and cells?

If there is any option for this please suggest and if not then please suggest some alternate solution as I need to implement this in my IgrDataGrid.  

Hoping for a positive response.

Thanks!!!

Parents
  • 28945
    Offline posted

    Hello and thank you for posting this question. The grid doesn't have anything unique other than a key and ref properties. Ids on cells and are not possible because we don't give access to those DOM elements and the rows don't expose any DOM elements. I don't know how easy it would be for us to add this but you can submit a product idea here:

    https://github.com/IgniteUI/igniteui-react/issues

    Note, the likelihood of adding this to the ported Angular igx-grid aka the IgrGrid is greater. But we don't have a timeframe when this control is getting ported over to React.

Reply Children