We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

WebApi batch operation controller sample

Thread ID:

Created:

Updated:

Platform:

Replies:

142559 Feb 10,2019 09:16 AM UTC Feb 11,2019 05:13 PM UTC JavaScript - EJ 2 3
loading
Tags: Grid
Samuel
Asked On February 10, 2019 09:16 AM UTC

Do you have an example of ApiController implementation for batch operation?
I tried deleting 

a number of rows at a time but got this


{"Message":"The request entity's media type 'multipart/mixed' is not supported for this resource.","ExceptionMessage":"No MediaTypeFormatter is available to read an object of type 'PhoneBook' from content with media type 'multipart/mixed'.","ExceptionType":"System.Net.Http.UnsupportedMediaTypeException","StackTrace":"   at System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)\r\n   at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)"}

Thanks

Madhu Sudhanan P [Syncfusion]
Replied On February 11, 2019 12:51 PM UTC

Hi Samuel, 

Thanks for contacting Syncfusion support. 

We suspect that the Web API is not configured with batch handler in the application. Please use the below link to troubleshoot your problem. 


If you still face this problem, please share us the WebApi config to check the batch routing details.  

Regards, 
Madhu Sudhanan P 


Samuel
Replied On February 11, 2019 04:05 PM UTC

I'll try to set that up on the server

Thanks for pointing me to that

Madhu Sudhanan P [Syncfusion]
Replied On February 11, 2019 05:13 PM UTC

Hi Samuel, 
Thanks for the update. Please follow the procedure to setup the batch handler and get back to us if you faced any problem. 
Regards, 
Madhu 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;