Row Highlight added attribute aria-selected=true to the first row

Posted by: saisreeja.gadi on 19 April 2025, 7:37 am EST

    • Post Options:
    • Link

    Posted 19 April 2025, 7:37 am EST - Updated 19 April 2025, 7:42 am EST

    Hi

    Row Highlight need to add attribute aria-selected to the first row. I can able to add aria-selected = true when I click on the row.

    But I required to add that attribute to the first row at the time of grid refresh without clicking on the row.

    In the attachment aria-selected = true is added to 3rd row. But I need to remove that and add that attribute to 1st row. How can I make that possible.

  • Posted 21 April 2025, 9:09 am EST

    Hi,

    It seems you want to set the ‘aria-selected’ attribute on the row elements in the grid and update its value whenever the grid is refreshed or selection is changed. If so, then you can handle the ‘updatedView’ event of the grid to add this attribute to the row element. Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/js-kfnozglr?file=index.js

    Please note that, the ‘updatedView’ event of the Flexgrid is triggered whenever the view is updated in grid, any heavy tasks should not be performed using this event. However, for your current requirement, you can use this event; it will not cause any performance impact.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels