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

Dropdown list in Pop-up not sending back correct values

0 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Just
Top achievements
Rank 1
Just asked on 28 Sep 2012, 07:35 PM
I've a grid with a custom template modal window for edit & add. The template has drop down list field defined like below:

<div class="k-edit-label">
            <label for="ColName">Site</label>
</div>
<input name="ColName" data-source="ColNameDataSource" data-text-field="colName" 
      data-value-field="dartSiteName" data-bind="value:ColName" data-role="dropdownlist" />

When I edit a row and change the value of the drop-down it shows correctly in the grid.

But if I Add a row and change the value of the drop down it shows up as [object Object]. Does anyone have any idea what could I be doing wrong?
Thanks.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Just
Top achievements
Rank 1
Share this question
or