Hello,
I would like to either show a specific set of toolbar items on a new row (2 rows, one specific set on each row) or add an entirely new section between the toolbar and the header row of a datagrid. I was curious of the best way to achieve this with syncfusion?
Hello,
Multiple toolbars would solve my requirement. However, I would want to keep the standard grid toolbar on top of the second toolbar.
Hello,
Not displaying the arrows is one problem but overall the reason for this is just UI/UX. I need a new section to display an entirely different set of toolbar items or controls based on the table. Having the two sections would improve the user interface in terms of usability as the items will be unrelated. Pretty much I need the ability to show some additional dropdowns, checkboxes etc.. for filtering the data. We have too much data and this has to be done in raw sql.
|
// Grid’s created event handler
function created() {
// A new div element is created and appended between the Grid default toolbar and header elements
var newEle = document.createElement('div');
grid.element.insertBefore(newEle, grid.headerModule.headerPanel);
// The EJ2 Toolbar control is initialized with the required items
var customToolbar = new ej.navigations.Toolbar({
items: [
{ text: 'Custom Action 1' },
{ text: 'Custom Action 2' }
],
clicked: customToolClick
});
// Render initialized Toolbar control on the newly created element
customToolbar.appendTo(newEle);
}
// Custom toolbar’s clicked event handler
function customToolClick(args) {
alert('Custom toolbar item clicked')
} |
Thank you, I started down the path of using a custom toolbar template but will try the created event and inserting an additional toolbar. The custom toolbar template for the grid produced its own set of problems that hopefully this solves.