Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147950 | Sep 28,2019 11:39 PM UTC | Oct 1,2019 09:34 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: DataGrid |
this.childGrid = {
queryString: "PurchaseOrderGridViewId",
load: loadChild,
actionComplete: created,
columns: [
{ type: 'checkbox', width: "50" },
{ field: "PurchaseOrderDeliveryGridViewId", headerText: "Delivery ID", width: "120" },
]
}; |
. . . . .
Var flag = false;
childGrid: {
dataSource: dataManger,
queryString: "EmployeeID",
dataBound: function(args) {
if (flag) {
var HCheckbox = this.getHeaderTable().querySelector(".e-checkselectall");
HCheckbox.click(); // click the header checkbox to select all the records
flag = false;
}
},
allowPaging: true,
columns: [
{ type: "checkbox", width: 50 },
. . . . .
]
}
});
grid.appendTo("#Grid");
window.fun = function(args) { // in parent grid button click
var a = grid.getRowInfo(args.target.parentElement);
grid.detailRowModule.expand(a.rowIndex); // expand the corresponding child grid
flag = true
};
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.