Grid with OdataV4Adaptor: Override PUT/PATCH

I am using the Grid control with the OdataV4Adaptor.  For PUT/PATCH operations, the API is expecting TWO keys.  Here is the API's PATCH mathod:

[HttpPatch("Fiscal_Records_View({eid},{tid})")]

public async Task<IActionResult> UpdateFiscalRecords(Guid eid, Guid tid, [FromBody] Fiscal_Records_ViewForUpdateDto patch)

{ code here }


Can I override or extend the OdataV4Adaptors PUT/PATCH methods to accomplish this.  If not, what would you recommend as a solution?


1 Reply

MS Monisha Saravanan Syncfusion Team March 24, 2022 01:02 PM UTC

Hi Scot, 

Greetings from Syncfusion support. 

We understand you requirement to pass more parameters in Put/Patch method by overriding the default parameter count. But we afraid that it is impossible for us to override the parameters of PUT or PATCH request. Instead we suggest you to pass additional parameters to the server by using Query property of Grid.  

Kindly check the attached UG for your reference. 


Kindly get back to us if you have further issues in achieving your requirement. 

Regards, 
Monisha 


Loader.
Up arrow icon