New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Hierarchy

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • hierarchy.cshtml
  • HierarchyController.cs

Also available for:

API REFERENCE

Description

There are projects which require to display table data in hierarchical-like fashion, in order to visualize relations between parent and child records.

This is where the Telerik MVC grid hierarchy feature comes in handy. To implement hierarchy with the grid widget, you need to:

  • Set the ClientDetailTemplateId setting which specifies the id of the script element containing the client-side detail template of the grid
  • Define the script tag content that will be shown when the user expands the grid rows

Support & Learning Resources