在kendoDropDownList中,如何像kendoMultiSelect DropDown那样,自动将光标放在TextBox上?

问题描述 投票:0回答:1

enter image description here光标 单个下拉列表

        $("#baseServiceScheduleModel_DriverUId").data("kendoDropDownList").enable(true);

请在此输入图片描述*KendoMultiSelect DropDownList *。剑道多选

  $("#baseServiceScheduleModel_HelperUId").data("kendoMultiSelect").enable(true);
jquery asp.net-mvc kendo-ui kendo-asp.net-mvc
1个回答
1
投票

你有没有试过这样切换服务器过滤?服务器过滤

该代码将是这样的

@(Html.Kendo().DropDownList()
          .Name("products")
          .DataTextField("ProductName")
          .DataValueField("ProductID")
          .HtmlAttributes(new { style = "width:100%" })
          .Filter("contains")
          .DataSource(source => {
              source.Read(read =>
              {
                  read.Action("ServerFiltering_GetProducts", "DropDownList");
              })
              .ServerFiltering(true);
          })
    )
© www.soinside.com 2019 - 2024. All rights reserved.