OnServerDeleteRow not returning deleted record.

As stated on your website the method upon being triggered  the details of the deleted record are supposed to be returned, instead it always returns the first record's details.

I have found an article from 2019 (https://www.syncfusion.com/forums/143777/another-crud-example)  and I have followed the steps but the values returned are from the first record instead of the deleted record.

3 Replies 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team April 12, 2021 01:17 PM UTC

Hi Alexandros, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: As stated on your website the method upon being triggered  the details of the deleted record are supposed to be returned, instead it always returns the first record's details. 
 
The reported issue will occur when we do not set any column as “primary key” column. You need to enable “IsPrimaryKey” property in any one of the column definition whose value is unique, for CRUD functionality to work properly.  
 
We have already discussed the same in below help documentations, 
 
Still facing the issue, kindly get back to us with the below details, 
  1. Complete Grid rendering code
  2. Screenshot of error with complete stack trace (if any)
  3. Screenshot of network tab while deleting record as shown below
  4. Also share us your Essential Studio Version details
 
 
 
Regards, 
Padmavathy Kamalanathan           


Marked as answer

AC Alexandros Christou April 15, 2021 06:43 AM UTC

Sorry for the late response, 

I have tried again and now it works!

thank you for your help!


PS Pon Selva Jeganathan Syncfusion Team April 16, 2021 11:36 AM UTC

Hi Alexandros,   
 
Thanks for the update. 
 
We are glad to hear that query has been resolved.   
   
Kindly get back to us for further assistance. We are happy to assist you. 

Regards,  
Pon selva   



Loader.
Up arrow icon