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.

KeyVal receives NULL on "endDelete"

Thread ID:





130140 Apr 24,2017 06:13 PM Apr 25,2017 01:28 AM ASP.NET Web Forms 1
Tags: Grid
Asked On April 24, 2017 06:13 PM

Hello Friends,
The following code returns NULL when  DeleteRow  "endDelete" event is trigered:

Thank you for your help and time,


Rafael M.

protected void ejGrdAD2_DeleteRow(object sender, GridEventArgs e)
     EditAction2(e.EventType, e.Arguments["data"]);

protected void EditAction2(string eventType, object record)
     List<DAP> data = Session["DS2"] as List<DAP>;

     Dictionary<string, object> KeyVal = record as Dictionary<string, object>;  // here's the problem ...
     // record has the values like in a second level and assigns to KeyVal only the first level that is empty
     // only occurs when eventType is "endDelete" (see the attached image)

     if (eventType == "endEdit") {    //// endEdit Works OK ...
          DAP value = new DAP();
          foreach (KeyValuePair<string, object> keyval in KeyVal) {

          ... }

     else if (eventType == "endAdd"){     //// endAdd Works OK ...
          ...      }

     else if (eventType == "endDelete"){    //// ERROR in next line ... KeyVal is null ...
          foreach (KeyValuePair<string, object> keyval in KeyVal) {
               if (keyval.Key == "nKeyField1"){
                   DAP value = data.Where(d => d.nKeyField1 == (int)keyval.Value).FirstOrDefault();




     Session["DS2"] = data;
     this.ejGrdAD2.DataSource = data;

Attachment: syncfusion_grid_20170424_155159_92de5cfd.zip

Saravanan Arunachalam [Syncfusion]
Replied On April 25, 2017 01:28 AM

Hi Rafael, 
Thanks for contacting Syncfusion’s support. 
We are sorry that we are unable to reproduce the reported issue at our end and we have created a sample for your requirement that can be downloaded from the below link. 
If the issue is still exist, could you please provide the following details. 
1.       Share your view code. 
2.       Share the currently used build version. 
3.       If possible, please reproduce the issue in above attached sample. 
Saravanan A.  


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.

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.