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

Update grid record

Thread ID:





129613 Mar 24,2017 11:02 AM UTC Mar 27,2017 09:40 AM UTC ASP.NET Web Forms 1
Tags: Grid
Asked On March 24, 2017 11:02 AM UTC


Add  records to product grid from search grid..after add records unable to edit  product grid  ( unable to update type)

Edit event not working

    protected void EditEvents_ServerEditRow(object sender, GridEventArgs e)     {

            EditAction(e.EventType, e.Arguments["data"]);


Attachment: new_cc1912b2.rar

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On March 27, 2017 09:40 AM UTC

Hi Pratheep,  
We are able to reproduce the problem at our end. Since the data holds the __type property after returning from the Ajax POST, the server handle arguments didn’t recognize them. It is the cause of the problem. So we suggest to either delete this property before binding data to the Grid or else prevent the same in server end. This has been applicable to server events of all the ASP Elements. Refer to the following code example.  
           <script type="text/javascript"> 
               function bindproduct(Productcode, Productname) { 
                       type: "POST", 
                       url: "workorder.aspx/bindproduct", 
                       datatype: "json", 
                       contentType: "application/json", 
                       data: JSON.stringify({ "Productcode": Productcode, "Productname": Productname }), 
                       success: function (msg) { 
                           for (var i = 0; i < msg.d.length; i++) { 
                               delete msg.d[0].__type; 
                           var materialGridObject = $("#ProductGrid").ejGrid('instance'); 
Seeni Sakthi Kumar 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

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