Author Topic: Row Grouping with Infinite Scroll  (Read 2910 times)

sarah-appfolio

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Row Grouping with Infinite Scroll
« on: July 24, 2014, 12:19:02 am »
Hello,

We are experimenting with the groupModel, but it appears that the grouping is done before the beforeTableView event.  I'm wondering if pqgrid doesn't support grouping for infinite scroll?  It seems like mixing remote data and local grouping would be bad.

Currently, we do grouping on the server (we do everything on the server).  Our data has rows that include a row type.  If the row type is "group", it will only have 1 column attribute populated and that attribute contents will be formatted to look like a title.  The hard parts are that this "group title" should be displayed left-aligned, should not wrap or be truncated (it should span multiple cells if necessary), and should not be affected by reordering the columns.  The column the "group title" is associated with might not be visible.  I tried to attach a screenshot as a sample, but the post fails.

We've played with the render function on the column model and were able to format the "group title", but we're still missing these other requirements.

Do you have any suggestions?  Is what we want possible in pqgrid?

Thanks,
~Sarah

sarah-appfolio

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Row Grouping with Infinite Scroll
« Reply #1 on: July 24, 2014, 12:37:58 am »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Row Grouping with Infinite Scroll
« Reply #2 on: July 24, 2014, 04:29:11 pm »
Take the help of this demo to merge cells ( for grid title to span multiple cells)

http://paramquery.com/pro/demos/merge_cell

If you want a particular cell to remain left aligned, then remove the 'pq-align-right' class from that cell.