This is a migrated thread and some comments may be shown as answers.

Grid inside a component, selection event issue

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Veteran
Marco asked on 14 Feb 2021, 10:54 AM

Hi there, I would put a grid inside a component and fire a component's EventCallback when a row of the grid is selected, however seems that there is an issue when you try to call an EventCallback (async) from the grid onselecteditemchanged event (sync) as noted here: 
https://docs.telerik.com/blazor-ui/components/grid/selection/single

"// note: an async operation here can break the selection and may not even render its results in the view// for async operations, use the OnRowClick event"

 

How could I achieve that?

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 16 Feb 2021, 11:43 AM

Hello Marco,

At the moment, the closest option I can offer is using the RowClick event. We also have this feature request open for an event that will allow async operations that also render from the selection change: https://feedback.telerik.com/blazor/1505907-add-an-event-that-fires-after-the-selecteditemschanged-and-can-perform-async-operations. Hopefully, this will not actually require a new event, but that's how this request came in and at this point we don't yet know what will be possible, so we're keeping it. I've added your Vote to it and you can click the Follow button to get email notifications for upates.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Marco
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or