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.
Unfortunately, activation email could not send to your email. Please try again.

How to pass additional parameter to server-side while Performing CRUD operations?

This Knowledge base explains how to pass additional parameters to server side while performing CRUD operations in Grid.

Solution

This can be achieved using actionBegin event of ejGrid. In this event when edited record is saved the value is passed to the controller using “addParams” property of query API of ejGrid.

 

1.Render the grid control

JS

 

RAZOR

 

C#

 

ASP.NET:

 

ASP.NET CORE

 

Angular:

 

TS File:

                                                                                                                                                 

2. In actionBegin event we check the condition with the requestType and passing the value through addParams property of query API

JS

 

Result:

 

Figure 1:  Value passed through addParams and gets in the controller.

Article ID: Published Date: Last Revised Date: Platform: Control:
8766 05/16/2018 05/16/2018 ASP.NET Web Forms Grid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.