nested grid

Hi,

I have created a grid with 2 nested grids in treeview mode.
How can i make the second nested grid to be diplayed below the first one and not in the same row?

Thanks

Re: nested grid

It can be defined accessing “Nested Grid>>Settings”. It has the “Positon” option.

V?tor Jamil

Re: nested grid

Hallo Vitorjamil,

I am having the same question using Scriptcase v5. How can I move a second nested grid below my first nested grid. Right now my 2 nested grids show up in same line below my main grid (Master). This is fine for me when I get 4 other problems solved.

This is what my application looks like:

MainGrid (horizontal using tree view)
Nested Grid1 (vertical) / Nested Grid2 (vertical)

And I want this in 960px width:

MainGrid (horizontal using tree view)
Nested Grid1 (vertical)
Nested Grid2 (vertical)

Refering to my first Layout version I got some questions…layout is a bit buggy for nested grids:

  1. I set width 960 px at settings of MainGrid, but it looks like the application is ignoring my max size. I want to fade left right with slides within the area where my nested grids are when there are 10 nested grids for example, but width should stay at 960 px so it fits my page. Right now my grid goes to 100% and then I get browser slides.

  2. My Nested Grid1 has 5 lines and Nested Grid2 has 10 lines. Nested Grid 1 is centered and can’t be moved to top. I want the first line of NestedGrid1 also to start at top. I tried settings Margen, but nothing happens. All the settings for positioning refer to left, right, center…but where can I move a vertical grid top?

  3. “Colums per page”…if I have only 3 records to be displayed I want this setting to be 3 so there is no space between 2 vertical nested grids. I need a setting like “Columns per page = number of records”. Other wise I get the space when I set it to 100 for example.

  4. Headline for my nested grids are not shown using treeview for MasterGrid…how can I display a headline for each nested grid?
    Thank you!

Edit: I solved 2 of my problems

  1. Nested Grid below Nested Grid and headline of nested grids:

Grid1 (horizontal) - This is my Master where I add a nested grid called NestedGrid1 using treeview
NestedGrid1 (slide) - This is my Slave (you can hide this NestedGrid1 and display only the others in the Blocks settings)…this grid also contains nested grids (vertical), as many as I want…using Layout->Blocks I create as many blocks as there are nested grids. All you need now is to match those nested grids to those blocks. Use Option “Select Fields” to do this or check this tutorial: http://www.scriptcase.net/siteen/samples/tutoriais/grid/grid20.php

The Blocks Label is displayed as headlines for the nested grids…solved…:slight_smile: That was tricky…

but I am still having the problem with “Columns per page” and nested grid area staying 960px. Let’s pretend I have 20 record to be displayed in one nested grid that belongs to my master, then the application width sizes 100% of browser window and ignores my setting of 960px width. Setting of width at Blocks from 100% to 960px or even width setting in each application won’t help?!

Edit: I solved my sizing problem using a workaround…I set my Master inside a cotainer, my Columns Per Page are set 1…this way I get all my records below each other…works best for printing when you use vertical nested grids. Now the nested grid sizes 100% within my 960px Master…My Master stays in a 960px Container. For printing you can choose whole data set and then decide on which treeview to be active or inactive.

—CLOSED— for now :slight_smile: