Is it possible to set an ID attribute on inputs in grid's filter row?

1 Answer 337 Views
Grid
Grzegorz
Top achievements
Rank 1
Grzegorz asked on 28 Jan 2022, 08:13 AM

Hello,

My team would like to create E2E tests in Cypress for the grids we use and we are wondering whether it's possible to set unique ID values on the filter row. Currently, these IDs are just GUID values and we couldn't find a way to modify them.

 

Kind regards,

Greg

1 Answer, 1 is accepted

Sort by
1
Marin Bratanov
Telerik team
answered on 30 Jan 2022, 12:12 PM

Hello Grzegorz,

You can have the tests count the index of the column if you are looking to use DOM manipulation. We need to ensure unique IDs because otherwise we could clash with something from the page.

Alternatively, you can use filter templates in the grid to define any custom rendering you want. Note, however, that this takes away the built-in functionality and could potentially be al of of work to replace if this is only for doing testing.

Regards,
Marin Bratanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
Tags
Grid
Asked by
Grzegorz
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or