Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to merge similar row cells ? #126

Open
rijulsudhir opened this issue Dec 18, 2024 · 2 comments
Open

How to merge similar row cells ? #126

rijulsudhir opened this issue Dec 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@rijulsudhir
Copy link

rijulsudhir commented Dec 18, 2024

For example:
currently it is implemented as below
Screenshot from 2024-12-18 22-36-39
Need to make the date rows merged as below
Screenshot from 2024-12-18 22-34-53
merge rows with similar values ?
or
Is there any way to add first two rows in a single PlutoRow ?

current code

stateManager?.prependRows([
                  PlutoRow(
                    cells: {
                      'date_field':
                          PlutoCell(value: '18/12/2024 10:12 AM'),
                      'types_field':
                          PlutoCell(value: 'Type1'),
                      'qty_field':
                          PlutoCell(value: '5'),
                    },
                  ),
                 PlutoRow(
                    cells: {
                      'date_field':
                          PlutoCell(value: '18/12/2024 10:12 AM'),
                      'types_field':
                          PlutoCell(value: 'Type2'),
                      'qty_field':
                          PlutoCell(value: '6'),
                    },
                  ),
                 PlutoRow(
                    cells: {
                      'date_field':
                          PlutoCell(value: '18/12/2024 12:12 AM'),
                      'types_field':
                          PlutoCell(value: 'Type1'),
                      'qty_field':
                          PlutoCell(value: '7'),
                    },
                  ),
                 PlutoRow(
                    cells: {
                      'date_field':
                          PlutoCell(value: '18/12/2024 12:12 AM'),
                      'types_field':
                          PlutoCell(value: 'Type2'),
                      'qty_field':
                          PlutoCell(value: '8'),
                    },
                  )

                ]);

Thank you

@rijulsudhir rijulsudhir added the question Further information is requested label Dec 18, 2024
@rijulsudhir
Copy link
Author

This is urgent, can someone please help

@muammerakilli
Copy link

There is a row group feature that may be useful.

https://weblaze.dev/pluto_grid/build/web/index.html#feature/row-group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants