Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Fixing a ListGrid group?

    Hi,

    when there is an amount of records which introduces scrolling, and the grid is grouped, scrolling will make the group title disappear. You would always need to include the column on which the grid is grouped to see this grouped value.

    See sample http://www.smartclient.com/smartgwt/showcase/#grid_ml_summaries
    This grid contains many records, so when scrolling down header "Software" disappears.


    Is there a possibility to fix the group header so record scrolling will occur inside the group?


    So the behavior of a stack inside a grid.
    http://www.smartclient.com/smartgwt/showcase/#layout_sections_expand_collapse
    section "HTML Flow" has an inner scrollbar.

    #2
    Hi
    This isn't supported with a ListGrid and the grouping feature.

    You could achieve this by building your own UI.

    A starting point might be a SectionStack containing a number of ListGrids, so instead of a single ListGrid showing a number of groups, you would have each section in the section stack be a "group".
    You'd have to have your own logic to populate each grid - in most cases this would be as simple as applying filter criteria.
    You might want to set showHeader to false to suppress the header on each grid, so you just see a scrollable body.
    Depending on how far you want to take this, you could also build a custom HStack of buttons at the top of the sectionStack which would mimic the behavior of a ListGrid header -- allow resizing and on resize, call "resizeField" on each of the member grids, etc.

    Regards
    Isomorphic Software

    Comment

    Working...
    X