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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pass the Updated EjGrid Values to the controller using ajax.

Thread ID:





118821 Apr 13,2015 09:13 AM UTC Apr 14,2015 02:50 PM UTC JavaScript 1
Tags: ejGrid
Asked On April 13, 2015 09:13 AM UTC

       I am using EjGrid with dropdown column which is not editable in normal editing mode.so i m using batch edit mode.after editing all the rows i want to update them in database.so i am passing the grid values to controller.But i didn't get the updated values in controller.Here is my ajax code to pass the grid values to controller

  $('#SaveGrid').click(function () {

            var gridObj = $("#Grid").ejGrid("model");
            var G1 = JSON.stringify(gridObj);

i want to pass the updated grid values to the controller in an external button click. and i didn't use the toolbar for this grid.

Prasanna Kumar Viswanathan [Syncfusion]
Replied On April 14, 2015 02:50 PM UTC

Hi Ganga,

Thanks for using Syncfusion Products.

Your requirement have been achieved by the batchSave public api in ejGrid. In button click event we suggest you to invoke batchSave method. While using batchSave method it will pass the updated grid values to the controller.

Please find the below code snippet :

<script type="text/javascript">


click: function (args) {

var grid = $("#FlatGrid").ejGrid("instance");





For your convenience we have created a sample and sample can be downloaded from the below link

Sample Link : http://www.syncfusion.com/downloads/support/forum/118821/Sample2116279786.zip

Please let us know if you have any further assistance.


Prasanna Kumar N.S.V


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon