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

Send extra parameters on CRUD

Hello,

How can I send extra parameters on Post/Put/Delete?

The following code works fine on Get:
<EjsGrid  Query=@QueryString ....
>
                        <EjsDataManager Offline="true"  Url="@url" Adaptor="Adaptors.WebApiAdaptor"></EjsDataManager>
.....

@code {
     public string QueryString { get; set; } = "";

protected override void OnInitialized(){
QueryString  =  $"new ej.data.Query().addParams('tableid', {id})";
}


 I need to send the "tableid" parameter on CRUD as well


Thank you,

Bill

2 Replies

VN Vignesh Natarajan Syncfusion Team November 11, 2019 03:35 AM

Hi Bill,  

Greetings from Syncfusion support.  

Query: “How can I send extra parameters on Post/Put/Delete? 

We have validated your query and currently we do not have support to send additional parameters to server using querystring during the CRUD operation. So we have considered your requirement as an improvement. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We have planned this feature for our Bi-Weekly Nuget release which is expected to be rolled out on or before 3rd December 2019. We will let you know once this improvement is implemented. 
 
You can track the current status of this feature request and also communicate with us regarding the open features any time using our Feature Report page. 


Till then we suggest you to achieve your requirement by sending the custom headers to WebAPI. Refer our UG document for your reference 


If you are facing any issue while applying above workaround(custom headers), kindly get back to us with more details.  

Regards, 
Vignesh Natarajan. 



VN Vignesh Natarajan Syncfusion Team January 10, 2020 01:44 AM

Hi Bill,  
 
We are glad to inform that our latest Nuget package (17.4.0.42) has been successfully rolled out. In this release we have resolved the issue “Send Additional Parameters values to server while sending CRUD operation request”. Please find the latest Nuget package from below and also find the release notes regarding the fixes we have included in this release.  
 
 
 
Also ensure that you have referred the latest version script and css as below  
 
  <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.42/fabric.css" rel="stylesheet" /> 
 
 
Please get back to us if you have further queries. 
 
Regards, 
Vignesh Natarajan. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon