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
I also tried to add headers (example from: https://ej2.syncfusion.com/blazor/documentation/grid/data-binding/#sending-additional-parameters-to-the-server), without any success.
Thank you,
Bill
SIGN IN To post a reply.
2 Replies
VN
Vignesh Natarajan
Syncfusion Team
November 11, 2019 11:35 AM UTC
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 09:44 AM UTC
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
|
|
Please get back to us if you have further queries.
Regards,
Vignesh Natarajan.
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
-
DT Dimitrios Tsarouchis
- Nov 8, 2019 10:19 AM UTC
- Jan 10, 2020 09:44 AM UTC