Hi Lorryl,
Thanks for contacting Syncfusion Support.
We would like to let you know that the height of the sidebar component will be autmatically adjusted based on the content height when the target is specified for the Sidebar component. So here, you need to set height of the grid container (since grid is the main content of the sidebar) maually using a class selector based on the browser height as shown in the below code snippet.
| <div id="maincontent" class="content e-resizable" style="padding: 15px;"> <div> <div class="title">Voucher List</div> <div class="center-align"> <ejs-grid #grid [dataSource]='dataSource' [columns]='columns' [allowReordering]='true' [allowResizing]='true' [allowSorting]="true" [height]="'100%'"> </ejs-grid> </div> |
| ngOnInit(): void { //Set the height for the Grid container by calculating the browser height dynamically using “window.innerHeight” and reducing the header height 50px; (<HTMLElement>document.querySelector('.e-resizable')).style.height = (window.innerHeight - 50) + 'px'; } |
For your convenience, we have also updated the provided and attached it in the below link. Please check it.
To know more about responsiveness with grid component, please check the below link.
Please let us know if you need any further assistance.
Regards,
Deepa L.