This is a migrated thread and some comments may be shown as answers.

Tree View Name Label gets blank on search

2 Answers 123 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rajeev
Top achievements
Rank 1
Rajeev asked on 02 Sep 2020, 11:53 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Svet
Telerik team
answered on 04 Sep 2020, 06:45 AM

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/.

0
Rajeev
Top achievements
Rank 1
answered on 24 Nov 2020, 05:57 PM
Thanks, That make sense. Text field value was setting empty text.
Tags
TreeView
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Svet
Telerik team
Rajeev
Top achievements
Rank 1
Share this question
or