Ok, figured this out. The reason my <select> fields are not getting written out is that kendo detects they haven't changed. The problem is, it isn't writing out the starting value (selected item) of the <select> which I need it to.
I can't get your example to show a select element with a default option. I have changed the example to show what I mean - option 'one' should be auto selected, but isn't.
If it were auto-selected, it would not get written out when you press 'save'.
answered on 14 Aug 2014, 06:52 AM
The problem is caused by the name attribute of the select option. As the attribute points to invalid value in the dataSource the MVVM binding will not work correctly and the selected option is not applied. Please check the updated example:
Thanks for the reply. I've created a new example with an inline datasource which has the value contained in the name field and I still am not seeing a default select option:
Appreciate any help you can give :)
answered on 18 Aug 2014, 07:38 AM
I have played a bit with the scheduler, and it turns out that the selected attribute is not being applied in the template, because after the template is initialized a value binding is performed, so a value from the dropdown is selected. In order to preselect you need to set a default value in the schema configuration, so the default option value is selected. Please check the following example and let me know if it helps: