let secondChildGrid = {
dataSource: customerData,
queryString: "CustomerID",
columns: [
. . . . .
],
childGrid: {
dataSource: hierarchyOrderdata,
queryString: "CustomerID",
columns: [
{
field: "OrderID",
headerText: "Customer ID",
textAlign: "Right",
width: 75,
},
{ field: "ShipCountry", headerText: "Country", width: 100 },
],
},
};
return {
parentData: employeeData.slice(0, 5),
childGrid: {
. . . . . .
columns: [
{
field: "OrderID",
headerText: "Order ID",
textAlign: "Right",
width: 120,
},
. . . . .
],
childGrid: secondChildGrid,
},
};
}, |