DataGrid EditTemplate does not support object with non parameterless constructors

Hi there 

 I run into a problem with the Syncfusion DataGrid:
 When I use the "Column Template" context, the context object contains all information as provided in a list.
 Now: When I use the "Column EditTemplate" context, objects inside my context that do not have a parameterless constructor are filled with the value "null" even though the Item is in the list with filled (not null) values.

The desired behavior would be that the field is not null.


I provided an attachment that can be used to reproduce the issue.


Please let me know if I can further assist in reproducing the incident.

Have a gre


Attachment: EditForm_7621dc10.zip

1 Reply 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team August 3, 2021 11:31 AM UTC

Hi Nathaniel, 

Greetings from Syncfusion support. 

We have checked your code and we suggest you to refer the below documentation to perform CRUD operation for class having Parameterized constructor. Also we suggest you to set Field property for the complex column. 


Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Marked as answer
Loader.
Up arrow icon