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

Refresh Grid with updated data

Thread ID:





118052 Jan 26,2015 09:06 AM UTC Jan 27,2015 12:35 PM UTC ASP.NET Web Forms 1
Tags: Grid
Dirk Strauss
Asked On January 26, 2015 09:06 AM UTC

I bind my grid on page load. I then use an AJAX modal pop-up (displayed on row double-click) to modify the selected row data. On the save button, I update the data to the database. How do I refresh the grid with the updated data from the C# code behind?

Alan Sangeeth S [Syncfusion]
Replied On January 27, 2015 12:35 PM UTC

Hi Dirk,

Thanks for using Syncfusion Products.

We are glad to let you know that we have created a sample based on your requirement and the same can be downloaded from below link.

Sample: http://www.syncfusion.com/downloads/support/directtrac/118052/Sample-959640018-301822669.zip

In the above sample, using “RecordDoubleClick” Grid event we have shown a dialog to display the values of current record and on “click” event of save button in dialog we have used ajax post to update database and then in its success event we have updated Grid using “updateRecord” Grid method. Please refer the following code snippets.

<ej:Grid ID="Grid" runat="server" AllowPaging="true" Width="1500px">
<ClientSideEvents RecordDoubleClick="EditHandler" />


<ej:Dialog ID="basicDialog" Width="550" runat="server" Title="Edit Record"  ShowOnInit="false">


                    <div id="EditTable"></div>



function EditHandler(args) {





        function saveHandler() {



                url: "Default.aspx/Update",

                data: JSON.stringify({ value: data }),



                success: function (e) {

                    var obj = $("#Grid").ejGrid("instance");






Alternatively, instead of manually opening dialog on record double click we can use “Dialog Editing” feature of Grid to use dialog for Editing and “RemoteSaveAdaptor” of Grid DataManager which has server-side interaction during CRUD operation in Grid.

Please refer the following online sample link for Dialog Editing in Grid and UG Documnetaion for “RemoteSaveAdaptor” of Grid DataManager.

Online Sample: http://mvc.syncfusion.com/demos/web/grid/dialogediting

RemoteSaveAdaptor Documentation: http://help.syncfusion.com/ug/js/documents/crudoperationwithser.htm

Please let us know if you need any further assistance.

Alan Sangeeth S


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