Highlight Row when GridCommandButton is clicked.

1 Answer 312 Views
Button
Dustin
Top achievements
Rank 1
Dustin asked on 07 Jun 2023, 03:39 PM

Is this possible?   

I have seen the documentation on highlighting rows, but I haven't seen anything around getting a row to highlight outside of row selection and checkbox selection.

1 Answer, 1 is accepted

Sort by
0
Accepted
Radko
Telerik team
answered on 12 Jun 2023, 05:44 AM

Hi Dustin,

You can achieve what you are after by utilizing the GridState. You can define an OnClick event handler within the GridCommandButton to which you can pass the reference/any data related to the item that has been clicked. Once you have this, through the Grid State, you can control the selection. I have prepared a rather simple example that demonstrates this: https://blazorrepl.telerik.com/mxaUvQaz41xLrERU50

Regards,
Radko
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Dustin
Top achievements
Rank 1
commented on 13 Jun 2023, 02:50 PM

This is exactly what I was needing!!!   Thanks a ton!!!!
Tags
Button
Asked by
Dustin
Top achievements
Rank 1
Answers by
Radko
Telerik team
Share this question
or