Tree View Name Label gets blank on search

3 posts, 1 answers
  1. Rajeev
    Rajeev avatar
    48 posts
    Member since:
    Feb 2008

    Posted 02 Sep Link to this post

    Hi,

    Is there any idea why the angular treeview control is behaving like this which searching in the attached image.

     

    Used the below code to search the treeview

    https://www.telerik.com/kendo-angular-ui/components/treeview/how-to/filtering/

     

    Html Treeview

     <kendo-treeview
        [nodes]="publishedKnowledgeAccounts"
        [children]="children"
        [hasChildren]="hasChildren"
        textField="Title"
        [isExpanded]="isExpanded"
        [isChecked]="isChecked"
        (checkedChange) = "checkedChange($event)"
        (collapse)="handleCollapse($event)"
        (expand)="handleExpand($event)"
        [kendoTreeViewCheckable]="checkableSettings"
        [(checkedKeys)]="checkedKeys"
    >
    </kendo-treeview>

    Thanks

    Rajeev

     

  2. Answer
    Svetlin
    Admin
    Svetlin avatar
    444 posts

    Posted 04 Sep Link to this post

    Hi Rajeev,

    We aren't sure what causes the demonstrated undesired behavior. Judging by the provided sample code and screenshot, it seems that once the data is filtered then the remaining objects do not have a "Title" property and thus they are displayed as empty. Indeed, that is just a guess and we aren't sure what is the root of the issue. In case further assistance is required for this case please provide a runnable StackBlitz example demonstrating the behavior. Thank you in advance.

    Regards,
    Svetlin
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  3. Rajeev
    Rajeev avatar
    48 posts
    Member since:
    Feb 2008

    Posted 3 days and 18 hours ago in reply to Svetlin Link to this post

    Thanks, That make sense. Text field value was setting empty text.
Back to Top