PlutoGrid - Development News - Row grouping

Search for a command to run...

No comments yet. Be the first to comment.
PlutoGrid is a data grid. It is a Flutter package that allows you to easily edit large amounts of data with the keyboard. It can be used on any platform supported by Flutter.
Row grouping is a function to group rows of PlutoGrid. Group by column Rows are grouped by grouping cell values based on a specified column.PlutoRows are automatically grouped by cell value without the user having to group them. // In the onLoaded ...
A unique id can be set for PlutoMenuItem. PlutoMenuItem( id: 'unique_id', title: 'Menu 1', ) If PlutoMenuItem is created in build method, you should set a unique id for PlutoMenuItem.Otherwise, when PlutoMenuBar is rebuilt, incorrect actions suc...

The default ScrollBehavior.dragDevices of PlutoGrid is as follows.(dragDevices is a setting that allows scrolling by dragging to the set pointer type.) // In case of Mobile { PointerDeviceKind.touch, PointerDeviceKind.stylus, PointerDeviceKind....

Example code to add custom widget to PlutoMenuBar.

PlutoGrid has default shortcut keys set, and users can change or set shortcut keys. Shortcut Range The scope of the shortcut depends on the focus. PlutoGrid : In the state that TextField is not focused. You can set custom shortcut keys. TextField :...

PlutoLayout is a Flutter package for configuring layouts such as CMS or admin service.You can configure tab views or menus on the top, bottom, left, and right sides.It also supports keyboard shortcuts and allows you to toggle or resize the tab view. ...

I'm currently developing a grouping function of rows for version 5.2, which is the next version of PlutoGrid 5.1.




As in the image above, in the previous version, drag the selected row to move it.
However, complex planning needs to be considered when trying to select and drag a specific row in a grouped state as shown in the image below.
As in the image above, when the user tries to move selected specific rows by dragging, the row must be moved according to the grouped state.
Move all children to another group
- parent should be deleted
Move grouped rows to another parent group
- If the parent group to be moved already has a group with the same key, there is a key conflict problem. The children of the group to be moved must be added as children of an existing group.
Group row discards children and moves to another location
- The children of the group must also move along with the group. (UI considerations as to whether or not to select all children when a group row is selected)
Group row moves to non-group row position
- After moving the children of the group row, the group must be deleted.
These problems are possible enough for development, but it will be necessary to plan the UI so that there is no confusion such as a group being deleted or an unselected row being moved when a row is moved from the user's point of view.
If you have a good, simple idea, please comment on my GitHub issue. https://github.com/bosskmk/pluto_grid/issues
If this problem is not easily solved with the function of moving the selected row in a grouped state, I plan to distribute only this part in the next version.