O'Reilly logo

Kendo UI Cookbook by Sagar Ganatra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a hierarchical list using the ListView widget

In all the previous recipes, the data returned from the service contained all the records, and the same were displayed in the list. When working with a hierarchical data structure instead of a flat one, the ListView widget can be customized so that it can display the data in a hierarchical way, that is, displaying the elements in the first level of the hierarchy and then traversing through various levels until the leaf nodes in the hierarchy are reached.

Getting started

To build a hierarchical list, the service should return data that lists the first set of records that need to be displayed. Each record should have a field that indicates whether there are child records or it's a leaf node in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required