Hello,
I am currently using a RESTDatasource to populate my igGrid and I d'like to know if there is a way to change the update behaviour to make a POST request instead of a PUT request. I am currently using a IIs WebServer and it can be difficult to use PUT requests when WebDav is installed (I can't be sure it won't be present). In the meantime, I'm still looking for a solution to make it work (WebDav + PUT Request) but if there is a POST solution it could be an acceptable fall back for me.
Thank you!
Hello Vincent,
Thank you for using Infragistics forums!
There is no direct way to set the HTTP verb for the update requests, however, you could inherit the RESTDataSource and change its verb mapping. It would look something like that:
Thank you for your help, I had the time to test your solution and it's working which will be a fall back for me if i cannot fix my put problem. Just for information there is also another limitation that I didn't thought at first : you cannot use the url templating ({id}) with post request (which is normal).
I ll let you know if I find a solution for the PUT problem I encounter.
Best regards
I am glad that Stamen`s solution was helpful for you!
Thank you for taking time to share your observation with our community.
Please let us know if you need any further assistance.