Hi Deepak,
Thanks for contacting us.
We have validated your requirement. You can achieve your requirement, by dynamically setting the grid height. Please refer the below code example and sample for more information.
[App.component.html]
<div class="control-section">
<ejs-grid [dataSource]='data' #grid (dataBound)='dataBound()' allowPaging='true' height='350'>
. . .
</ejs-grid>
</div>
|
[App.component.ts]
. . .
export class AppComponent {
public data: Object[] = [];
@ViewChild('grid', {static: true})
public grid: GridComponent;
ngOnInit(): void {
this.data = orderDetails;
}
dataBound () {
let changedHeight = this.grid.element.getBoundingClientRect().height - parseInt(this.grid.height as string);
//dynamically setting the grid height including header and footer
this.grid.height = parseInt(this.grid.height as string) - changedHeight;
}
}
|
Please get back to us with the complete Grid, if you need further assistance.
Regards,
Balaji Sekar.