How to highlight items find by the filter

4 posts, 0 answers
  1. Gers
    Gers avatar
    10 posts
    Member since:
    Jan 2016

    Posted 12 Feb Link to this post

    Is there a way to highlight items find by the filter in a treeList ?

     I Want this behavior:  http://jsfiddle.net/fosxumcb/  but using kendo provided  filter

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 16 Feb Link to this post

    Hello Gers,

     

    The widget which you are referring is not a TreeList, but a TreeView.

     

    The widget doesn't have such functionality. There is also a JavaScript error when you try to search in the example which is due to this line `$(treeViewId + ' li.k-item').expand(".k-item");`.  You are calling expand to jQuery object rather than to the TreeView instance.

     

    The following article shows how to use expand method correctly.

     

    Regards,
    Nikolay Rusev
    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. Gers
    Gers avatar
    10 posts
    Member since:
    Jan 2016

    Posted 16 Feb in reply to Nikolay Rusev Link to this post

    I know it's a treeView but In my case i'm using a treeList. I just want the same behavior but using a treeList. I just want to know if there is a way to highlight the item found by the treelist filter.
  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 18 Feb Link to this post

    Hello Gers,

     

    `I just want to know if there is a way to highlight the item found by the treelist filter` - No, there isn't built-in way to highlight items based on filters.

     

    Regards,
    Nikolay Rusev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready