0

当 jqxDropDownList 时,有没有办法对字符串中的任何单词启用过滤。例如,如果列表中的值是 John Smith,我希望能够在过滤器文本中键入“Smith”并找到这个。

我将可过滤设置设置为 true,我还能做些什么来启用部分字符串过滤?

4

1 回答 1

1

查看控件的 javascript,文档中没有几个设置,其中之一是searchMode,其值为:

  • containsignorecase
  • contains
  • equals
  • equalsignorecase
  • startswith
  • startswithignorecase
  • endswith
  • endswithignorecase

一个例子是:

$("#jqxProductList").jqxDropDownList({
    filterable: true,
    searchMode: "containsignorecase",
    checkboxes: true,
    source: dataAdapter,
    displayMember: "model",
    valueMember: "product",
    width: 400,
    height: 25
});
于 2014-12-30T20:41:37.317 回答