<div id="Grid"></div>
<script type="text/javascript">
var employeeView = @Html.Raw(Json.Encode(ViewBag.empData));
var OrdersView = @Html.Raw(Json.Encode(ViewBag.orders));
$(function () {
$("#Grid").ejGrid({
dataSource: employeeView,
allowPaging: true,
. . ..
load: function (args) {
this.addIgnoreOnExport("childGrid");
},
. . . .
childGrid: {
. . . . .
}
});
});
</script> |
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
. . . .
. ..
childGrid: {
dataSource: dataManger,
queryString: "EmployeeID",
toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.PdfExport] },
toolbarClick: function (e) {
if (e.itemName == "PDF Export") {
this.exportGrid('/Home/ExportPdf')
e.cancel = true;
}
},
}
});
});
</script> |