Available in the Full Version

Hierarchical Grid - Load on Demand

This sample demonstrates how to use the load on demand functionality of igHierarchicalGrid.
Show
records
Category NameDescriptionProducts Count

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

Load on demand functionality enables the hierarchical grid to request the data for the child layouts from the server as the user interacts with the grid (expands a layout). This approach significantly reduces the data being transferred between the browser and the server.
The grid in this sample is configured in the controller which is mandatory for load on demand scenario. When you expand a row the data for the child layout will be requested with an AJAX call from the server.

Code View

Copy to Clipboard
@using Infragistics.Web.Mvc
@using IgniteUI.SamplesBrowser.Models.Northwind
@using System.Data
@model Infragistics.Web.Mvc.GridModel

<!DOCTYPE html>

<html>
<head>
    <title></title>

    <!-- Ignite UI for jQuery Required Combined CSS Files -->
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/structure/infragistics.css" rel="stylesheet" />

    <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>

    <!-- Ignite UI for jQuery Required Combined JavaScript Files -->
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.core.js"></script>
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.lob.js"></script>
</head>
<body>

    @(Html.Infragistics().Grid(Model))

</body>
</html>