DataForm can't handle inherited abstract properties

Hi,

please see my attached example for a quick reproduction of the issue.

I was trying to show my entity in a SfDataForm, which gave me the error:
An item with the same key has already been added

Exception was really hard to debug, because the stacktrace only contained a dynamic call. After about a hour I found out it was caused by my inheritance.
For now I solved the problem by changing the property to a method, but I think this should be possible with a property as well.

Kind regards,
Daniel

Attachment: SfDataFormTest_acf78f9b.zip

2 Replies

SV Srinivasan Vasu Syncfusion Team April 10, 2018 05:19 AM UTC

Hi Daniel, 
 
Thanks for contacting Syncfusion support. 
 
We are able to meet your scenario “An item with the same key has already been added while using Abstract properties” exception in our side.. We have logged a report for this issue and the fix will be included in our upcoming 2018 Vol2 release while will be available at the end of May, 2018.  
 
Regards, 
Srinivasan 



JM Jeyasri M Syncfusion Team June 25, 2018 12:25 PM UTC

Hi Daniel, 
 
We are glad to announce that our Essential Studio Volume 2, 2018 (Version 16.2.0.41) is rolled out, the fix for the issue with Exception occurs while adding Abstract properties in SfDataForm has been included and is available for download under the following link. 
 
                    
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Jeyasri M 


Loader.
Up arrow icon