By using .net grid, it works as the picture shown below. Now I want to fulfill the same effect by using Angular Grid, however, I have encountered some problems.
I’m using Hierarchical Binding in Angular Grid.
I didn’t find any solutions about how to remove the caption of the Child-Grid and make it to inherit the one of its Parent-Grid.
|
App.component.ts
ngOnInit(): void {
this.parentData = employeeData;
this.childGrid = {
dataSource: orderDatas,
queryString: 'EmployeeID',
allowPaging: true,
pageSettings: { pageSize: 6, pageCount: 5 },
columns: [
{
field: 'OrderID',
headerText: 'Order ID',
textAlign: 'Right',
width: 120
},
{ field: 'ShipCity', headerText: 'Ship City', width: 120 },
{ field: 'Freight', headerText: 'Freight', width: 120 },
{ field: 'ShipName', headerText: 'Ship Name', width: 150 }
],
childGrid: this.secondChildGrid
};
}
detailDataBound(args) {
args.childGrid.getHeaderTable().style.display = 'none'; //hide the headers here.
}
} |
hi Ajith Govarthan,
https://stackblitz.com/edit/angular-snmhxn-qp3w4b?file=app.component.ts
The first Question:
When I set the second child, and using detailDataBound(),
1. The Icon is too close to text
2. The second child's headers can't hide
The second Question:
how to resizing the child's grid synchronously, when I resizing the main grid?