Paul Verest
Paul Verest

Reputation: 63882

SlickGrid - table inside table (grid inside grid cell)

Does SlickGrid support grid inside grid cell? Could you give example.

Data given is big JSON with internal arrays and objects.

Example:

  #    Name  D1 D2 D3 D4 D5
  Row1 Name1 Mn Tu We Th Fr
              2  3  5  6  2
              2  3  5  6  2
              2  3  5  6  2
  Row2 Name2 Mn Tu We Th Fr
              2  3  5  6  2
              2  3  5  6  2

What other grids (jqGrid, Flexigrid, DataTables etc.) could do that?

UPDATE: the terminology is not standard, so I just show the closest picture I have found

Upvotes: 0

Views: 1423

Answers (1)

Oleg
Oleg

Reputation: 221997

The picture which you placed in your question looks more as one grid over another one, but you wrote about the grid inside of cell of another grid. So I am not sure that I correctly understand your requirements.

I can write only about jqGrid which I know. It supports subgrids, which means grids associated with rows of main grid. Main grid has additional column having "+" symbol by default. If the user click on the "+" symbol of some row the corresponding subgrid (general HTML fragment which can be another jqGrid) will by displayed under the row.

You can find examples of code which creates subgrids here, here and here for example.

Upvotes: 1

Related Questions