tags:

views:

17

answers:

1

Hi,

Please see the link below,

http://www.logicatrix.com/example/records.html

In this table there are many columns included , so what i want is to get fit the whole table into drawn gray border i.e. div element with class name bms-dashboard-body. with a horizontal scroll bar just like an excel sheet has on the right bottom corner a small one. is it possible to create liquid layout of this jqgrid table ?

if someone has another approach , to fit the this table then i don't mind.

A: 

The parameter autoWidth:true should be written as autowidth:true.

Moreover you can set grid height and width with respect of setGridHeight and setGridWidth methods (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods). The best place to do this probably inside of the loadComplete event handler.

Oleg
Using autowidth:true is causing problem because if i specify width of cloumns in a colModel then few of my cells are getting crushed :(
Hunt
At least the value `autoWidth` is unknown for jqGrid and will be just ignored. There are different approach to place long information in jqGrid. See http://stackoverflow.com/questions/1730061/wrapping-text-lines-in-jqgrid and http://stackoverflow.com/questions/3097498/render-a-newline-in-my-data-inside-a-jqgrid-cell/3097678#3097678. But in the most cases cutting of information and displaying the full texts as tooltips are enough.
Oleg