MVVM MultiColumnComboBox filterFields

1 posts, 0 answers
  1. ASLI
    ASLI avatar
    2 posts
    Member since:
    Sep 2012

    Posted 04 Nov 2018 Link to this post

    I use  MultiColumnComboBox with MVVM  but I can't filter multi column. I tried filterFields and data-filterFields  attribute  but could not run . Source code is below. 

    Thanks for your help

     

    <input data-role="multicolumncombobox"
                       data-filter="contains"
                       data-filterFields= "[ProductName, ProductID]"
                       data-placeholder="Type a product e.g. 'Chai'"
                       data-text-field="ProductName"
                       data-value-field="ProductID"
                       data-columns="[
                       {field: 'ProductID', title: 'Urun Kodu'},
                       {field: 'ProductName', title: 'Urun Adı'}
                       ]"
                       data-bind="value: selectedProduct,
                                  source: products
                                  }"
                       style="width: 100%" />

Back to Top