Servoy / aggridcomponents

Advanced table components based on ag-Grid
MIT License
5 stars 10 forks source link

Add MasterDetail Grid Option #30

Open wvitpr opened 5 years ago

wvitpr commented 5 years ago

Would it be possible to add MasterDetail option to AgGrid?..

seanthomasdevlin commented 5 years ago

Hi wvitpr,

This is already possible using NG Grids with other Servoy components. Can you explain your use case with more detail?

Thanks, Sean

wvitpr commented 5 years ago

Hi Sean, What I'm trying to achieve is a grid within a grid. So I single row expanding to a grid of multiple rows, I guess like a treetable view, but unfortunately its not available at the moment for NG Client, as it was in my pre upgraded 7.3 solution, AG grid also has a treedata view that would be great if implemented...

seanthomasdevlin commented 5 years ago

Hi wvitpr,

The grouping is not sufficient for this use case ? expanding a row to get more rows? Or the columns will be different? How would that even look ?

Winfly-NG commented 4 years ago

Hi Sean,

This feature would be very useful, for example the possibility to expand the order to show the order details. Is it something already possibile in servoy data grid?

Thanks, Andrea

gboros commented 4 years ago

I guess something like this? https://www.ag-grid.com/javascript-grid-master-detail-custom-detail/ ? But then how would you provide the info for the detail? just providing some html formated data via a dataprovider? as rendering a form insided a table don't seem possible ...

wvitpr commented 4 years ago

Hi Sean,

Could we not just have a nested grid of related records ? so nggrid within nggrid. ?

From: Gabi notifications@github.com Sent: Monday, 20 July 2020 5:05 PM To: Servoy/aggridcomponents aggridcomponents@noreply.github.com Cc: wvitpr proutley@wvit.com.au; State change < state_change@noreply.github.com> Subject: Re: [Servoy/aggridcomponents] Add MasterDetail Grid Option (#30)

I guess something like this? https://www.ag-grid.com/javascript-grid-master-detail-custom-detail/ ? But then how would you provide the info for the detail? just providing some html formated data via a dataprovider? as rendering a form insided a table don't seem possible ...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Servoy/aggridcomponents/issues/30#issuecomment-660845102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUP7WIA5T2ANJNDCMJAADR4PUDNANCNFSM4IDVVBNA .

gboros commented 4 years ago

showing a grid is also possible, https://www.ag-grid.com/javascript-grid-master-detail-detail-grids/ , then also, the question is, how would you feed the data to the inside grid?

wvitpr commented 4 years ago

Via a relationship or dataset

On Mon., 20 Jul. 2020, 5:48 pm Gabi, notifications@github.com wrote:

showing a grid is also possible, https://www.ag-grid.com/javascript-grid-master-detail-detail-grids/ , then also, the question is, how would you feed the data to the inside grid?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Servoy/aggridcomponents/issues/30#issuecomment-660863849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUP7VSSFAEUURZU47QWUTR4PZFLANCNFSM4IDVVBNA .

Winfly-NG commented 4 years ago

I agree, the best way would be by relationship or dataset in my opinion

wvitpr commented 4 years ago

Foundset in datagrid, dataset in Power grid..

On Mon., 20 Jul. 2020, 7:19 pm Andrea Colombara, notifications@github.com wrote:

I agree, the best way would be by relationship or dataset in my opinion

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Servoy/aggridcomponents/issues/30#issuecomment-660909857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUP7UYYEHPSYUUCQ6QUXTR4QD2TANCNFSM4IDVVBNA .

gboros commented 4 years ago

ok, so having a detail view with a table is what we want (and not a form), then we can have 2 properties: detailViewFoundset (dataset for powergrid) and detailViewColumns

wvitpr commented 4 years ago

Yes that sounds great, thank you with the ability to show summed values in the parent record would be great.. so see the total of a child column in the parent record

On Mon., 20 Jul. 2020, 7:31 pm Gabi, notifications@github.com wrote:

ok, so having a detail view with a table is what we want (and not a form), then we can have 2 properties: detailViewFoundset (dataset for powergrid) and detailViewColumns

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Servoy/aggridcomponents/issues/30#issuecomment-660916158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUP7TDNC3T7CMA76WNXC3R4QFH3ANCNFSM4IDVVBNA .

gboros commented 4 years ago

created a case on Servoy support https://support.servoy.com/browse/SVY-15231

seanthomasdevlin commented 4 years ago

To have a real detail form (not a grid in a grid) would be very challenging. If that is required, I recommend using the collapse component, which can be built programmatically. It's not a grid in the header but can be injected with markup for formatting. https://github.com/Servoy/servoy-extra-components/wiki/Collapse