Delete operation in grid: Change request from $batch to DELETE request.

Is there any possibility to change request $batch to DELETE request using attributes in Grid.
Request Header:
Accept:multipart/mixed
Accept-Encoding:gzip, deflate, br
Accept-Language:pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:530
Content-Type:multipart/mixed; charset=UTF-8;boundary=batch_a10579ef-6138-4bd8-9704-f979d52e243f
DataServiceVersion:2.0
Host:localhost:xxxxx
Origin:http://localhost:yyyyy
Referer:http://localhost:yyyyy/Admin/Company?page=2

Request Payload:
--batch_a10579ef-6138-4bd8-9704-f979d52e243f
Content-Type: multipart/mixed; boundary=changeset_501bf989-37bb-411c-8caf-bb9af53955be

--changeset_501bf989-37bb-411c-8caf-bb9af53955be
Content-Type: application/http
Content-Transfer-Encoding: binary 

DELETE undefined(15) HTTP/1.1
If-Match : * 
Accept: application/json;odata=light;q=1,application/json;odata=verbose;q=0.5
Content-Id: 0
Content-Type: application/json; charset=utf-8 

--changeset_501bf989-37bb-411c-8caf-bb9af53955be--
--batch_a10579ef-6138-4bd8-9704-f979d52e243f--

I have a problem to parse it in ASP.NET WEB API.



3 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team November 1, 2017 05:59 AM UTC

Hi Customer,  
 
Thanks for contacting Syncfusion Support.  
 
We cannot change the Batch request as the Delete request in the Batch Edit Mode. Grid provides several edit modes which has been discussed in the following Help Document.  
 
 
You can use the edit modes other than the batch editmode which will raise a request DELETE, POST, PUT for the required editing actions in the WebAPI Adaptor.  
 
Could you please share the exact details that you are facing with the batch request with the WebAPI? So we can rectify it and provide you solution in it. 
 
Regards,  
Seeni Sakthi Kumar S. 
 



AA Akhil Arora November 9, 2018 04:35 PM UTC

How it get implemented. I am getting the same issue. I am trying to delete multiple row by selected checbox. 


VN Vignesh Natarajan Syncfusion Team November 12, 2018 08:10 AM UTC

Hi Akhil, 

Thanks for using Syncfusion products. 

Query: How it get implemented. I am getting the same issue. I am trying to delete multiple row by selected checbox.  
 
From your query, we understand that you are facing issue while performing editing with WebAPI adaptor. We have already discussed the same in the below help documentation refer the below link, 


After referring the help document, still facing the issue please get back to us with the following details. 

  1. Share the exact issue are you facing while implementing the batch editing in webApi.
  2. Share the grid code example.
  3. Share the Essential studio version.
  4. Share you requirement in detail.

Regards, 
Vignesh Natarajan 
 


Loader.
Up arrow icon