Grid-selection in react

1 Answer 59 Views
Grid Styling
A
Top achievements
Rank 1
Iron
Iron
A asked on 22 Nov 2022, 05:49 PM

Hi,

I have implemented selection on  my grid in react.

When i call my api I want to change selection value but without click event, is this possible in react?

Api return some value, and i want to set selection to that specific value .. without using click event. When user click on row that's oke, but when api return samo specific value i want to set selection on grid  to that specific value.. is this possible?

 

Selection is made according to this url:

https://www.telerik.com/kendo-react-ui/components/grid/selection/

Can give  example of this if it is possible?

 

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 23 Nov 2022, 11:31 AM

Hello,

Thank you for reaching out to us.

The desired behavior can be achieved by setting the `selectedState` value after the API response is available. The following example demonstrates a possible way to achieve it:

I hope this helps, but please let us know if further questions on this matter arise.

Regards,
Ivaylo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid Styling
Asked by
A
Top achievements
Rank 1
Iron
Iron
Answers by
Ivaylo
Telerik team
Share this question
or