Issue Adding Fields Dynamically to SfDataForm After Assigning Items

Hi,

I have been using the SfDataForm and explicitly adding data editors to it, which works perfectly. However, I encountered an issue when trying to dynamically add fields after assigning dataForm.Items.

It seems that once dataForm.Items has been set, adding new fields causes unexpected behavior or errors. Is there a supported way or a recommended workaround to dynamically add fields to SfDataForm after the Items property has been assigned?


Best regards,

Youssef Juma


1 Reply

VM Vidyalakshmi Mani Syncfusion Team January 10, 2025 02:04 PM UTC

Hi Youssef ,


Thank you for reaching out to us. After reviewing the details you provided, we tested the SfDataForm by explicitly adding data editors using the `Items` property, followed by dynamically adding new fields through a button click. We found that the new fields were successfully added. For your reference, we have attached the tested sample and an output video. Please check the attached sample and let us know if you encounter the same issue. If the issue does not occur in the sample, kindly modify it to replicate the problem and share the updated sample with us for further investigation. This will help us diagnose the issue more efficiently.


Regards,

Vidyalakshmi M.



Attachment: SampleAndVideo_b6ac647b.zip

Loader.
Up arrow icon