Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149217 | Nov 18,2019 05:32 AM UTC | Nov 20,2019 05:56 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
var grid = new ej.grids.Grid({
. . .
childGrid: {
dataSource: dataManger,
queryString: 'EmployeeID',
dataBound: function(e){
if(inital){
this.getColumns().filter((e)=>{return e.headerText == "Commands"})[0].width= this.getContentTable().querySelector(".e-unboundcell").scrollWidth;
this.widthService.setWidthToColumns();
console.log("initial");
inital =false;
}
},
columns: [
. . .
{
headerText: 'Commands',
width: 120,
commands: [{
buttonOption: {
content: 'Execute',
cssClass: 'e-success',
}
}, {buttonOption: {content: 'Delete', cssClass: 'e-danger'}},
{buttonOption: {content: 'Test Plan', cssClass: 'e-info'}}
]
}
]
});
grid.appendTo('#Grid');
|
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.