Fixed rows at top?

102 views
Skip to first unread message

Ken Hadden

unread,
Jul 23, 2013, 6:16:29 PM7/23/13
to param...@googlegroups.com
Hello,
I have a requirement to add two rows of fixed data to the top of the grid. They need to show just below the header, and stay fixed when the grid is scrolled and/or sorted.

I followed the summary example and it is working well, except the last two rows of [non-fixed] data remain hidden even when I scroll all the way to the bottom of the grid.

The only place I could find to put my table of fixed rows is at the top of the pq-cont-right. But your js code seems to not be taking into consideration the addition of my two rows when calculating the height of container of the scrolling rows. I wonder if I'm putting the fixed rows in the wrong container.

Here's my render and refresh functions. Pretty much the same as the summary example:

render: function (evt, ui)
{
$frozenRows = $('<div id="gridFrozenRows"></div>').prependTo($('.pq-cont-right', this));
},
refresh: function (evt, ui)
{
$grid.pqGrid('createTable', { $cont: $frozenRows, data: _fixedRows });
}


Some of my other options for reference:

minWidth: 10,
dataType: "JSON",
width: 950,
numberCell: false,
editable: false,
resizable: false,
draggable: false,
wrap: false,
topVisible: false,
bottomVisible: true,
oddRowsHighlight: true,
colModel: _colModel,
scrollModel: { horizontal: false },
dataModel:
{
data: _unwrappedRatingResults.Carriers,
location: "local",
sortIndx: 'CarrierName'
},

Any advice?

Ken.

Lance

unread,
Jul 26, 2013, 7:40:56 PM7/26/13
to param...@googlegroups.com
I work with the OP, and this is a huge issue that needs to be resolved in order for us to use the grid. 

We need to find some way to offset the height of the grid to accommodate the two fixed rows we have at the top of the grid. Right now, the grid is hiding the last two rows of the data due to the used of the fixed rows at the top of the grid. And we can't hard-code the height of the grid, as it needs to dynamically resize based on the size of the window  (in order to accommodate window resizing or mobile devices).

Still waiting for a solution to this issue...even if it's an ugly work-around.

paramquery

unread,
Jul 29, 2013, 6:41:46 AM7/29/13
to param...@googlegroups.com
Sorry for later reply. I haven't tried it this way (freeze top rows) and not sure about the workaround. 

Though this feature would be there in Pro version.

Lance

unread,
Jul 29, 2013, 1:08:05 PM7/29/13
to param...@googlegroups.com
Any update on when the Pro version (which would include this feature) will be released?  

We're operating under a pretty tight time constraint, so if it's going to be awhile then we have to figure out a work-around until you make this feature available.

Thanks,
Lance

Paramvir Dhindsa

unread,
Jul 29, 2013, 2:26:50 PM7/29/13
to param...@googlegroups.com
ETA is one week only though it would be a paid version.




--
You received this message because you are subscribed to the Google Groups "paramquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paramquery+...@googlegroups.com.
To post to this group, send email to param...@googlegroups.com.
Visit this group at http://groups.google.com/group/paramquery.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Lance

unread,
Jul 29, 2013, 3:07:14 PM7/29/13
to param...@googlegroups.com
Have you decided what you're going to charge for the paid version yet?

Paramvir Dhindsa

unread,
Jul 29, 2013, 3:53:13 PM7/29/13
to param...@googlegroups.com
It's not official yet (there may be few alterations) but it would be around $50 for single developer working on single project, and below $100 for team less than 5 developers working on multiple projects.


Lance

unread,
Jul 29, 2013, 5:40:38 PM7/29/13
to param...@googlegroups.com
Ok, thanks for the update.
Reply all
Reply to author
Forward
0 new messages