bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
637 stars 291 forks source link

[Feature] I need to refresh Column group content #916

Closed luis-rodas closed 9 months ago

luis-rodas commented 10 months ago

Hi!!

I need to refresh comply the current table with new data that need to be refresh constantly Currently I use this code:

// Clear grid content
dtStManager!.removeAllRows(notify: false);
dtStManager!.removeColumns(dtStManager!.refColumns.originalList);

// Create grid content
final tableContent = DataTableContent()
            ..generateTableContent();
dtStManager!.insertColumns(0, tableContent.getColumns);
dtStManager!.refColumnGroups.addAll(tableContent.getColumnsGroups);
dtStManager!.prependRows(tableContent.getRows);

My problem is there's not exist any method to re-create Columns groups content, my tricky way is to access directly to array and fill it dtStManager!.refColumnGroups.addAll(tableContent.getColumnsGroups);

Is possible to expose a method to able update column group content?

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.