0

How do we add static data to kendo combobox?

Here is the code:

$("#CbxBusinessSegment").data("kendoCombobox").dataSource.add({ text: "PS", value: "3" });

I am getting...

JavaScript runtime error: Unable to get property 'dataSource' of undefined or null reference"

...error because of that line.

4

1 回答 1

0

尝试这个

$("#CbxBusinessSegment").data("kendoComboBox").dataSource.add({ text: "PS", value: "3" });

kendoComboBox,B 的 Box 应该是大写。

例子

于 2012-12-27T11:19:50.453 回答