Exclude A Parent Node When Filtering

2 posts, 0 answers
  1. Troy
    Troy avatar
    12 posts
    Member since:
    Jan 2011

    Posted 23 Apr 2015 Link to this post

    I'm wondering if it's possible to exclude parent nodes in the treelist when using a filter. For example, let's say we have the following data:


    Animal: {
        id: 1
        parentId: null
        name: "Animal"
    Dog: {
        id: 2
        parentId: 2
        name: "Dog"


    When I populate a treelist with this data, I filter by the string "dog". What displays is the parent node "Animal" with the child node of "Dog". I'd like to only display the child node "Dog" since it matches my filter. Is this possible or does the parent node always have to be present?

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 27 Apr 2015 Link to this post

    Hello Troy,

    No, this is not supported. TreeList filtering is recursive and parent nodes will be preserved. Otherwise the widget will not be able to visualize the path from the root to the matched node.

    Nikolay Rusev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top