OData Server Operations Reload on Data Update

1 Answer 35 Views
Data Query Grid
Ali
Top achievements
Rank 1
Ali asked on 21 Mar 2024, 09:00 PM

Hi,

I am working on "OData Server Operations" with .NET Core and implement following logic and its working fine.

https://www.telerik.com/kendo-react-ui/components/grid/data-operations/odata-server-operations/

now I am editing a row using modal but after update data, how can I refresh this gird to get latest data.

service.updateData(dataItem).then((response) => {
    //how can i refresh grid here
 })

1 Answer, 1 is accepted

Sort by
0
Wissam
Telerik team
answered on 25 Mar 2024, 12:57 PM

Hello, Ali,

Inside this `updateData` method, you need to add the new dataItem to the data, and pass the new data to the `dataReceived` method.

We have an example where this is achieved with external form editing where in `handleSubmit` we are calling the `dataReceived` method with the new data and the total as parameters:

Since the `dataReceived` method is passed as a property to the `ProductsLoader`, it will update the data server-side.

I hope this helps, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Data Query Grid
Asked by
Ali
Top achievements
Rank 1
Answers by
Wissam
Telerik team
Share this question
or