add

Adds an item to the widget.

Example

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
     dataSource: {
        data: [
            { name: "Jane Doe" },
            { name: "Sam Doe" }
        ]
    },
    template: "<div>#:name#</div>"
});
var listBox = $("#listBox").data("kendoListBox");
var person = {name: "Bob Doe"};
listBox.add(person);
</script>
In this article
Not finding the help you need? Improve this article