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

Getting back the modifications made on the client

Thread ID:





147993 Oct 1,2019 06:20 AM UTC Oct 2,2019 02:36 PM UTC ASP.NET Web Forms 1
Tags: TreeGrid
Asked On October 1, 2019 06:20 AM UTC


If I try an sample of the treegrid for example, I can on the client make several operations such as create a row, move it, change values, and so on.
But is it possible to "submit" theses changes made on the cclient by a submit button or anything else, and getting the new data on the server side ?

Thanks in advance for your answer.
An example would be greatly appreciated.

Pooja Priya Krishna Moorthy [Syncfusion]
Replied On October 2, 2019 02:36 PM UTC

Hi Marc, 
By using PageMethods, we can get the updated record details in the server side. For this we need to enable EnablePageMethods property in script manager. In the provided sample, we pass the updated records to the server side on button click action. Please find the below code example. 
public static void getUpdatedRecords(List<object> record) 
    //get updated records 
<input type="button" onclick="getUpdatedRecords()" value="Updated Records" /> 
<asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="True" /> 
<script type="text/javascript"> 
    function getUpdatedRecords() { 
         var obj = $('#TreeGridControlDefault').ejTreeGrid('instance'); 
         var items = []; 
         for (var i = 0; i < obj.model.updatedRecords.length; i++) { 
Please find the below sample link. 
Pooja Priya K. 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon