JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://jp.igniteui.com/js/modernizr.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="https://jp.igniteui.com/js/angular.min.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
<script src="https://jp.igniteui.com/js/external/jsrender.js"></script>
<script src="https://jp.igniteui.com/data-files/adventureworks.min.js"></script>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet"></link>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet"></link>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/i18n/infragistics-ja.js"></script>
<h3>ロードオンデマンド - loadTrigger: auto</h3>
<table id="autoAppendRowsOnDemand"></table>
<br />
<h3>ロードオンデマンド - loadTrigger: button</h3>
<table id="buttonAppendRowsOnDemand"></table>
<br />
JavaScript
$(function () {
//jsRender helper function which formats the string date
$.views.helpers({
formatDate: function (val) {
var date = new Date(val);
if (!isNaN(date) && ($.type(date) === "date")) {
return $.ig.formatter(date, "date", "dateTime");
}
return val;
}
});
$('#autoAppendRowsOnDemand').igGrid({
dataSource: adventureWorks,
autoGenerateColumns: false,
columns: [
{ headerText: "製品名", key: "Name", dataType: "string", width: "20%" },
{ headerText: "製品番号", key: "ProductNumber", dataType: "string", width: "20%" },
{ headerText: "メーカー フラグ", key: "MakeFlag", dataType: "bool", width: "10%" },
{ headerText: "再注文", key: "ReorderPoint", dataType: "number", width: "10%" },
{ headerText: "販売の開始日付", key: "SellStartDate", dataType: "date", width: "15%" }
],
enableUTCDates: true,
features: [
{
chunkIndexUrlKey: 'page',
chunkSizeUrlKey: 'pageSize',
name: 'AppendRowsOnDemand',
loadTrigger: 'auto'
}
],
width: '100%',
height: '300px',
templatingEngine: 'jsrender'
});
$('#buttonAppendRowsOnDemand').igGrid({
dataSource: adventureWorks,
autoGenerateColumns: false,
enableUTCDates: true,
columns: [
{ headerText: "製品名", key: "Name", dataType: "string", width: "20%" },
{ headerText: "製品番号", key: "ProductNumber", dataType: "string", width: "20%" },
{ headerText: "メーカー フラグ", key: "MakeFlag", dataType: "bool", width: "10%" },
{ headerText: "再注文", key: "ReorderPoint", dataType: "number", width: "10%" },
{ headerText: "販売の開始日付", key: "SellStartDate", dataType: "date", width: "15%" }
],
features: [
{
...