Forum
The width of my grid is 848px. The sum of the column widths is only 570px. When I set ShrinkToFit and rownumbers to True with a width of 30px there is a horizontal scrollbar on the grid but it only scrolls for about 3 px. When I turn rownumbers off, there is no horizontal scrollbar. It doesn't look like Shrinktofit is taking the rownumbers column into account properly. The properties are set as follows:
scroll: 0,
url: 'searchresults.aspx?query=yes&search=' + search,
datatype: "xml",
height: 'auto',
width: 848,
colNames: ['Transformer ID', 'Max KWH', 'Start Date', 'End Date', 'Load Rating', 'Percent Loaded'],
colModel: [{ name: 'TransformerId', index: 'TransformerId', width:90 }, { name: 'KWH', index: 'KWH', width: 70 }, { name: 'Start', index: 'Start', width: 120 }, { name: 'End', index: 'End', width: 120 }, { name: 'Rating', index: 'Rating', width: 80 }, { name: 'Percent', index: 'Percent', width: 90,formatter:'number'}],
rowNum: 10,
mtype: "GET",
rownumbers: true,
rownumWidth: 30,
shrinkToFit: true,
gridview: false,
pager: '#searchResultsTablePager',
sortname: 'TransformerId',
viewrecords: true,
sortorder: "asc",
caption: "Transformer Loading Information Overview"
}
});
Just wanted to point that out. I'm not sure if I'm doing something stupid or not.
11:06
Moderators
30/10/2007
Hello,
Thanks for letting us know about this.
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
39 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66