Edit this page

add

Fires before an item is added to the ListBox.

The function context of the event handler (available through the this keyword) that will be set to the widget instance.

Event Data

e.items Array

The item elements that are to be added.

e.dataItems Array

The data items that are to be added.

Example

<select id="listBoxA">
    <option>ItemA1</option>
    <option>ItemA2</option>
</select>
<select id="listBoxB">
    <option>ItemB1</option>
    <option>ItemB2</option>
</select>

<script>
    $("#listBoxA").kendoListBox({
        connectWith: "listBoxB",
        toolbar: {
            tools: [ "transferTo" ]
        }
    });

    $("#listBoxB").kendoListBox({
        add: function(e) {
            // handle event
        }
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy