Remove Row From Grid and NOT refresh all the data

1 Answer 1142 Views
Grid
Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
Timothy J asked on 23 May 2021, 07:22 PM | edited on 23 May 2021, 07:23 PM

I have a grid bound to a List<> of data.

I have a button in the row to remove the row.

I am not using "OnRead".

If I would like to delete the row (and send the change to the backend), how do I remove the row from the grid without having to refresh all the data?

 

I have tried removing it from the List<> and then calling StateHasChanged, but it has no effect on the grid.  The record is removed in the backend.

 

Please advise.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 May 2021, 07:51 AM

Hi Timothy,

You can use observable collections for that. You can see how they work and how you can generally refresh the grid data in the following articles:

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
Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or