Is it possible to use the DataSource library to create or update a record via an Odata Endpoint? Any sample or example code?
1 Answer, 1 is accepted
0
Dimo
Telerik team
answered on 16 Jan 2023, 01:18 PM
Hello John,
I confirm this is outside the scope of the Telerik.DataSource package.
We provide a ToODataString() method, which is an extension method for the DataSourceRequest. It translates the DataSourceRequest properties to a URL query string, and it resides in Telerik.Blazor. The DataSourceRequest object exists in the OnRead event argument. This object is related only to read operations and does not exist in the create/update events of our components.
I believe you don't need OData functionality from us for editing, because there are no custom properties from us to translate. You only serialize the data item before sending it to the OData endpoint.
Regards,
Dimo
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/.