Option to Reorder Toolbar Buttons in Data Grid 2 Widget - Mendix Forum

Option to Reorder Toolbar Buttons in Data Grid 2 Widget

14

Currently, in Mendix's Data Grid 2 widget, the 'Column Selector' button is placed at the end of the grid toolbar by default. For certain use cases, it would be beneficial to have the flexibility to reorder this button along with other toolbar buttons according to the application's needs.

 

In my specific use case, I would like to place the 'Column Selector' button at the beginning of the grid or even as the first column. However, there is no built-in feature in Mendix Studio Pro to accommodate this.

 

Providing the option to reorder toolbar buttons will greatly enhance the user interface customization capabilities of Mendix, allowing developers to create more intuitive and user-friendly applications. It will enhance the UX by allowing users to access frequently used features more easily, without having to navigate to the end of the grid.

 

I kindly request the Mendix team to consider adding this feature in the future updates of Mendix. Thank you

asked
3 answers

Having the column selector use a full column always is not ideal anyway. In the latest version it has harcoded 54px of space. SO every row has 54px whitespace at the end.. That's  really unpractical, in our case every inch of space matters since we have heavy column-intensive grids.

 

For now we fixed it by replacing the harcoded 54px to 1px in the widget and styling the button into the header of the widget with CSS positioning. So we have no empty last column anymore. 

Created

A great suggestion! I also noticed a very strange behavior of the DataGrid2. If the user scrolls all the way to the right to show a hidden column again using the Column Selector, the scrollbar jumps to the left again. The user then has to manually scroll to the right again to get to the column selector.

 

Please fix this user unfriendly behaviour :)

Created

Fully agree. When the DG2 has a lot of columns such that the eyeball is off the screen the user has to go to the bottom of the page, scroll over to the right, and then back up to get to the eyeball icon, it's very cumbersome.

Created