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

How add Parameter to ReadAsync(Adaptor="Adaptors.CustomAdaptor") after method InsertAsync?

I try add parameter in methor OnActionBegin

  if (orddetail.RequestType == Action.Save)

                {

                    grid.Query = new Query().AddParams("Id", SelectOrder.Id);

                    grid.AddQuery(new Query().AddParams("Id", SelectOrder.Id));//AddQuery this method in basegrid

                }


3 Replies 1 reply marked as answer

BL Balamurugan Lakshmanan Syncfusion Team January 23, 2023 01:49 AM UTC

Hi Kavit,


Greeting from Syncfusion support.


We suggest you to use the AddParams query support to achieve this requirement.You can get the passed params inside DataManagerRequest parameter(dm.param) of ReadAsync method. Please refer the below documentation and try this from your side and get back to us if you need further assistance.


https://blazor.syncfusion.com/documentation/datagrid/data-binding#sending-additional-parameters-to-the-server


Regards,

Balamurugan L



KA kavit January 23, 2023 11:34 AM UTC

dd reply

sent parameter through Query variable



MS Monisha Saravanan Syncfusion Team January 24, 2023 11:34 AM UTC

Hi kavit,


We suspect that you have achieved your requirement using Query. If we misunderstood your requirement or if you face any difficulties then kindly get back to us with some more details about your query.


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon