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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass additional parameters from server to client using WebApiAdapter

Thread ID:

Created:

Updated:

Platform:

Replies:

148125 Oct 7,2019 01:27 PM UTC Oct 8,2019 04:02 PM UTC Blazor 1
loading
Tags: Grid
Mr Andrey Voronov
Asked On October 7, 2019 01:27 PM UTC

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"} ?

Vignesh Natarajan [Syncfusion]
Replied On 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. 


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

Live Chat Icon For mobile
Live Chat Icon