Hi,
Can I change the default position of the toolbar from the top to the bottom in a Child Grid?
I find this: https://ej2.syncfusion.com/documentation/grid/tool-bar/#add-toolbar-at-the-bottom-of-grid
but it is for Javascript and my childGrid is not a Grid, but a GridModel:
Thanks
|
App.component.ts
this.childGrid = {
dataSource: orderDatas,
queryString: 'EmployeeID',
allowPaging: true,
toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel'],
editSettings: {
allowEditing: true,
allowDeleting: true,
allowAdding: true,
newRowPosition: 'Bottom',
showDeleteConfirmDialog: true,
},
pageSettings: { pageSize: 6, pageCount: 5 },
columns: [
{
field: 'OrderID',
headerText: 'Order ID',
textAlign: 'Right',
isPrimaryKey: true,
width: 120,
},
{ field: 'ShipCity', headerText: 'Ship City', width: 120 },
{ field: 'Freight', headerText: 'Freight', width: 120 },
{ field: 'ShipName', headerText: 'Ship Name', width: 150 },
],
};
}
detailDataBound(args) {
var toolbar = args.childGrid.element.querySelector('.e-toolbar');
args.childGrid.element.appendChild(toolbar);
} |