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

Manual data display

0 Answers 45 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Guga
Top achievements
Rank 1
Guga asked on 08 May 2013, 12:10 AM
I have a kendo combobox created using
an MVC wrapper like so:

@Html.Kendo.ComboBox().Name("Well");

I want to update the data manually
using a json array stored in javascript (not from an ajax query) - I came
across this code which almost works except that I get [object Object] 3 times
in the ComboBox instead of the 'text' value from the json array:

$("#Well").data("kendoComboBox").dataSource.data([{text:
"i1", value: "1"},
{text: "i2", value: "2"},
{text: "i3", value: "3"}]);

$("#Well").data("kendoComboBox").dataSource.query();


<Edit>

Never mind, found the issue. Sorry about that.

</Edit>

Thanks for your help.

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Guga
Top achievements
Rank 1
Share this question
or