Setting filter="contains" from markup

3 posts, 0 answers
  1. Andreas
    Andreas avatar
    3 posts
    Member since:
    Dec 2014

    Posted 31 Aug 2015 Link to this post

    Hi,

     I try setting the filter property in markup but doesn't do too much. 

    <input id="orders" style="width: 100%;" data-text-field="ShipName" filter="contains"/>

    Setting it from jquery works fine. Am I using wrong attribute name?

     

    Thanks

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 01 Sep 2015 Link to this post

    Hello Andreas,

    The reason for the inability to set the filter as you intended to do so is the fact that the data attributes are not initialized. Please refer to the following documentation article, providing more insights on the matter:

    http://docs.telerik.com/kendo-ui/framework/data-attribute-initialization

    Hope this would help.

    Regards,
    Nencho
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Andreas
    Andreas avatar
    3 posts
    Member since:
    Dec 2014

    Posted 02 Sep 2015 in reply to Nencho Link to this post

    I was using the wrong attribute name, it should have been data-filter="contains"...
Back to Top