Announcement

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

    showing extra row in ListGrid

    Hi,

    I would like to show an extra row in ListGrid that will be used as a complex header for data presented in ListGrid. I can't use listGrid.gridComponents as I would like this to scroll together with listGrid.body.
    The quick but not ellegant solution that is working for me right now is to return extra empty row from dataSource for specific operationId and create recordComponent for that record, however there are problems with sorting as one have to manually put that record on the first position in data or disable sort at all.

    I am considering:
    1. visually pushing down records using body.topPadding (however some methods like placing components in records does not include this offset)
    2. rewriting listGrid.getCellRecord to fetch rowNum-1 record from data (this works ok so far for display but breaks selecting records as listGrid.selectionManager assumes that rowNum is equals to item's index in data)
    3. overloading get() and other methods in ResultSet (which leads to some strange behaviours leading to not showing the last record).

    Could you advice what would be the easiest and safest way to achieve that?

    Best regards,
    Janusz

    #2
    We would probably advise using gridComponents, and just hiding the extra row of controls when scrolling begins. With an animated hide, this won't look very different from getting scrolled out of view, and this is a common behavior users have seen on lots of websites.

    Comment

    Working...
    X