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. Image for the cookie policy date
close icon

How to pass additional parameters from server to client using WebApiAdapter

I can send additional parameters to the server using grid's Query property.

Is there any way to pass additional parameters from web api service to the client, something like

return new {Items = ..., Count = ...,  ExtraData = "123"} ?

1 Reply

VN Vignesh Natarajan Syncfusion Team October 8, 2019 04:02 PM UTC

Hi Andrey,  

Greetings from Syncfusion support.  

Query:” Is there any way to pass additional parameters from web api service to the client, something like 

Currently we do not have direct support to achieve your requirement (to pass an extra parameter from server to client). But you can achieve your requirement using CustomAdaptor feature of EjsGrid. While using CustomAdaptor you need to handle all the actions like filtering, sorting, paging, Crud etc. on your own. Refer our UG documentation for your reference 


As an alternative, you can achieve your requirement using by accessing the value in the client side and send the value again to server (razor page) using JSInterop. This will be asynchronous process. So kindly confirm whether it is fine for you to achieve this requirement by accessing the value in client and send it to razor page using JSInterop.  Based on your confirmation, we will share the details to get the extra parameter using JS interop.   
                                              
Regards, 
Vignesh Natarajan. 


Loader.
Live Chat Icon For mobile
Up arrow icon