Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141249 | Dec 1,2018 03:33 PM UTC | Dec 3,2018 09:03 AM UTC | ASP.NET MVC - EJ 2 | 1 |
![]() |
Tags: Grid |
...
var childGrid = new ej.grids.Grid({
dataSource: new ej.data.DataManager({
url: "/Home/UrlDatasource/",
insertUrl: "/Home/Insert/",
updateUrl: "/Home/Update/",
removeUrl: "/Home/Remove/",
adaptor: new CustomAdaptor()
}),
load: function (args) {
this.query = new ej.data.Query().where("contatos.EmployeeID", "equal", rowData['EmployeeID']);
this.on('printGrid-Init', function (args) { args.printgrid.dataSource = this.getSelectedRecords(); });
},
...
selectionSettings: { type: 'Multiple' },
beforePrint: (args) => {
var customElem = document.createElement('div');
customElem.innerHTML = "<h1>Required custom content here</h1>";
customElem.appendChild(document.createElement('br'));
args.element.prepend(customElem);
}
... |
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.