Dynamic Filter

2 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%" />
  2. Plamen
    Admin
    Plamen avatar
    2968 posts

    Posted 06 Nov 2018 Link to this post

    Hello,

    Here is how I set the property to filter by value the value field - data-filter-fields="['ProductID']". Here is my test dojo page - https://dojo.telerik.com/@zdravkov/aNojUjeB.

    Regards,
    Plamen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top