That code snippet worked really well in the demo at
http://paramquery.com/pro/demos/group_rows. However, when plugged into my test code, I get a javascript error:
Object doesn't support property or method 'one' It complains about this line of code:
this.one("refresh", function(). I get the same error for the other "this.foobar" lines as well.
After alot of debugging, I discovered that on line 98 of the demo above uses this to create the grid:
var grid = pq.grid("#grid_group_rows", obj); . The problem here is I try to use that same line of code and I get a javascript error that "pq" is undefined. The documentation at
http://paramquery.com/pro/tutorial#topic-firstgrid says that I can use that optionally. I'm abit confused.
Now, it gets even more interesting. on line 98 of the demo, I change that line to
var grid = $("#grid_group_rows").pqGrid( obj ); and run it. The demo doesn't work and indicates that there are no rows to display.
I noticed that using the "pq.grid" code on that demo, I briefly see the same display before it renders the rows and groupings. So, I suspect that something is happening prior to the grouping process.
I created a jsfiddle page to test this out and get the same results including not being able to use "pq.grid".
http://jsfiddle.net/a49tds2b/3/ Interestingly on the jsfiddle example, "load" never fires.....only "create"/
I am presenting this awesome product on Monday/Tuesday for my company as a candidate to replace another grid product. We use grouped grids in quite a few places and require the initial load to have all rows collapsed as well as the column widths dynamically adjusted for the data fed into them. As I said, the code snippet you provided works great in the demo. I am hoping for a workaround or a fix to get this working before then.
Regards,
Steve