CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

1.9.3773 CGJQGrid HeightToRows

General discussion

by Kevin Kelly » 08 Apr 2014 03:08

IW 14.0.22, Win 7, XE4 Delphi

Setting JQGridOptions.AdjustHeightToRows = True reduces the size of the grid to two rows...which do appear to fit :D

The query may have over 100 records in it so Gridview = True. There is nothing else exotic going on.

Any ideas? TIA - Kevin
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Jorge Sousa » 08 Apr 2014 09:48

Hi Kevin

When JQGridOptions.AdjustHeightToRows = True the grid enlarges the height so that it can fit all the rows, but you must is OnAdjustedHeighttoRows, to adjust the height of any parent regions.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Kevin Kelly » 08 Apr 2014 16:39

Ah Ha - I was thinking the grid height would default to the design value.

I need the grid to fit in the region where it appears. If it requires more grid display pages, then so be it.

While the Intraweb Components documentation didn't answer the "how" question, I see reference in the grid.cg.js file. Is this.setGridHeight(neededhgt, resize) where the desired height value would go?

Or, would it be the region in which the grid resides? Or on the Tab page on which the region resides? Or ?

I tried that using CGScrollStyle cgbsNone in the parnet areas and it had no effect on the grid height - you just couldn't get to the bottom of it hahaha. That only tells me that AdjustHeightToRows doesn't look at those kind of layout limitations before it is rendered.

Thanks a mill - Kevin
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Kevin Kelly » 12 Apr 2014 16:51

Bump
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Jorge Sousa » 12 Apr 2014 21:43

Hi Kevin

Your question is not clear.

What do you want to do with the grid and resizing?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.