We are facing an issue with an editor template being used in a grid column. The editor template is supposed to show the phases of treatment of a patient in an application which we are building.
The first time when the page loads, the grid shows correctly with patent id in the first column and the editor template showing 'pre - treatment' in the second column (as a dropdown list).
However, when we try to add a new row to the grid with a button click, in addition to a new row being added, it is observed that in the initial row as described above, the editor template changes from dropdown list to textbox, with the value (pre - treatment) being lost.
We are attaching a code sample for your kind reference.