0

Kendotooltip 不适用于 kendoMultiSelect?

multiSelectParticipant = $("#select_multi_participant").kendoMultiSelect({
    autoBind: true,
    dataTextField: "details",
    dataValueField: "resource_id",
    filter: "contains",
    dataSource: resources,
    itemTemplate: '#= details #',
    tagTemplate: '#= resource_name #',
    select: onSelect,
    change: function (e) {
        multiParticipants = this.value();
        isMultiParticipantsChange = true;
    },
}).data("kendoMultiSelect");
$("#txtGroupCapicity").change(function () {
    groupCapicity = $("#txtGroupCapicity").val();
    $("#select_multi").data("kendoMultiSelect").options.maxSelectedItems = (groupCapicity - 1);
});

function onSelect(e) {
    resourceTooltip = e.sender.wrapper.kendoTooltip({
    position: "top",
    content: e.item.text(),
    autoHide: true,
    width: 250,
    height: 20,
    animation: {
        duration: 0
    }
  }
 );
}
4

0 回答 0