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 single editable value alone to server?

This Knowledge base explains that how to pass single edited cell value alone to server while editing the record in Grid.

 

Solution:

By default, the full edited row data object would be passed to the server side while we do editing operation in ejGrid.

But if we want to pass single edited cell value to server then we need to set allowEditing property of Grid column as false except that column.

While editing the record we need to check the condition allowEditing property value as false and delete the corresponding unchanged values by using actionBegin event of ejGrid.

The following code example demonstrates how to pass single editable value to server while editing the record in Grid.

JS:

1. Render the Grid Control.

 

 

MVC:

 

ASP.NET:

 

 ASP.NET CORE:

 

Angular:

 

TS File:

 

C#:

 

 

JS:

2. In actionBegin event we check the condition with the requestType as save and delete the unchanged values based on allowEditing property.

 

Result:

Article ID: Published Date: Last Revised Date: Platform: Control:
8782 05/28/2018 05/28/2018 JavaScript ejGrid
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.