【问题标题】:How to stop processing icon in kendo Autocomplete如何在剑道自动完成中停止处理图标
【发布时间】:2014-06-18 11:37:24
【问题描述】:

$("#tankNameAutocomplete").kendoAutoComplete({ 最小长度:3, // 刷新:假,

    dataBound: function(e) {
        if (e.minLength < 3) {
            var autoComplete = $("#tankNameAutocomplete").data("kendoAutoComplete");
            autoComplete.dataSource.data([]);
        }
    },
    dataTextField: "CustomerLocationAndTankName",
    suggest: true,
    select: tanknameautocomplete_select,
    filter: "startswith",
    dataSource: { serverFiltering: true, transport: { read: { url: "/InventoryList/GetTankNames/", dataType: "json", type: "GET" } } },        
});

【问题讨论】:

  • 欢迎来到 SO!你的问题现在有点不清楚。如果您准确地解释您希望您的代码 sn-p 做什么以及它实际在做什么,您将更有可能得到好的答复。

标签: autocomplete kendo-ui


【解决方案1】:

我猜您想隐藏在激活服务器过滤时和显示结果之前显示的微调器图标。如果是这种情况,您可以使用 CSS 覆盖它,如下例所示:

http://trykendoui.telerik.com/EjIR

【讨论】:

  • $("#tankNameAutocomplete").keyup(function () {
  • $("#tankNameAutocomplete").keyup(function () { if ($(this).val().length = 0) { if ($('#tankNameAutocomplete').next( 'span').hasClass('k-loading')) $('#tankNameAutocomplete').next('span').hide(); } });
猜你喜欢
  • 1970-01-01
  • 2020-01-17
  • 2014-12-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多