This is a migrated thread and some comments may be shown as answers.

Adding form fields dynamically via ajax using popup editor

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 27 Jun 2013, 03:05 PM
My popup editor contains a dropdown list which fires an onchange event which populates the form with additional custom fields specific to the dropdown value. When the form is submitted, these custom fields do not show up in the FormCollection.

I am guessing the problem lies in the fact that these dynamically added fields are somehow not initialized properly?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Jul 2013, 12:25 PM
Hello Ray,

The editor is bound on initilization so the model will not be updated if the inputs are added dynamically. In order to dynamically show the inputs and update the model I can suggest to hide them initially and then show them when the dropdownlist value is changed.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ray
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or