Treelist Search Children(Subitems)

1 Answer 57 Views
TreeList
Sebastian
Top achievements
Rank 1
Sebastian asked on 29 Nov 2022, 10:38 AM

Hi all,

is it possible so search a treelist and show not only the parents but also the children (subitems) of the items?

 

thanks

Sebastian

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 02 Dec 2022, 06:58 AM

Hi Sebastian,

Indeed, the Telerik UI for ASP.NET Core TreeList exposes a built-in search functionality that can be enabled by explicitly adding a Search command inside the component's toolbar. Under the hood, the search panel utilizes the filtering functionality of the TreeList to show only the relevant records. Here is an example:

.Toolbar(toolbar =>
{
    toolbar.Search();
})

In addition, you can also specify any arbitrary fields that should be included during the search process through the built-in .Search() configuration option. For example:

.Search(s=> { s.Field(c => c.ContactName); })

That being said, we have a readily available demo on the premise which illustrates the search functionality that can be found here:

I would also like to mention that the search functionality comes with the following limitations which are outlined in the following section:

I hope this helps.

Kind Regards,
Alexander
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/.

Tags
TreeList
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or