In my grid I use the popup editing with a drop down list, when i edit an existing row i don't have any problem, but when i want to add a new row andi click on a value of the drop down list i get this error:
"0x800a138f - JavaScript runtime error: Unable to get property 'CD_PLANT' of undefined or null reference"
This is the template for the popup:
<script type="text/x-kendo-template" id="popup_editor">
<div class="k-edit-label" >
<label for="CD_PLANT" style="font-weight:normal">
plant
</label>
</div>
<div data-container-for="CD_PLANT" class="k-edit-field" >
<input kendo-drop-down-list k-data-source="lineCtrl.Plants"
k-data-value-field="'CD_PLANT'"
k-data-text-field="'DS_PLANT'"
data-bind="value: PLANT.CD_PLANT"/>
</div>
</script>
What is the problem? How can i solve it?