Available in the OSS Version

Data Source - TypeScript

Name Email Age
Gustavo Achonggachong@adventureworks.com45
Catherine Abelcabel@adventureworks.com32
Kim Abercrombiekabercrombie@adventureworks.com27

This sample is designed for a larger screen size.

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

This sample demonstrates how to bind the Data Source component to local data using TypeScript and a class-based approach.

Code View

Copy to Clipboard
<!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>

    <style type="text/css">
        .standard-grid {
            width: 100%;
            border-top: 1px solid #b1b1b1;
            border-right: 1px solid #b1b1b1;
            border-spacing: 0;
        }

        .standard-grid th, .standard-grid td {
            text-align: left;
            border-bottom: 1px solid #b1b1b1;
            border-left: 1px solid #b1b1b1;
            padding: 4px;
        }
    </style>
</head>
<body>
    <table id="table" class="standard-grid">
        <thead>
            <tr>
                <th>
                    Name
                </th>
                <th>
                    Email
                </th>
                <th>
                    Age
                </th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>

    <script src="/TypeScriptSamples/data-source/typescript.js"></script>
</body>
</html>