Forum
00:50
16/03/2010
my grid keeps showing horizonal scroll bars and wont fit all the data in the gird. If i shrink downt the column width the whole grid width shrinks and still i get the scoll bars with the same amount of data overflowing. How can I set the width and fit the width of the colums to fit inside with no need for scrollbars???
01:58
24/03/2010
Can you post your code? There could be a couple causes. Using the "My First Grid" example from the documentation, my grid doesn't have a horizontal scroll bar, even when I reduce its width down to 30 pixels.
Also, check out the documentation page http://www.trirand.com/jqgridw.....ki:options and look at the options that involve the horizontal scrollbar, ie shrinkToFit and forceFit. If you have one of those set, that would give you an unwanted horizontal bar.
17:59
16/03/2010
jQuery("#ScheduledList").jqGrid({
url: gridUr + '/' + month + '/' + date + '/' + year,
datatype: 'json',
mtype: 'GET',
altRows: 'False',
colNames: ['Invoice', 'Status', 'Company', 'Contact', 'Model', 'Customer', 'Order Notes', 'Internal Notes', 'DSR', 'Prod Date'],
colModel: [
{ name: 'invoice', index: 'invoice', width: 50, align: 'left' },
{ name: 'orderStatus', index: 'orderStatus', width: 50, align: 'left' },
{ name: 'company', index: 'company', width: 200, align: 'left' },
{ name: 'companyContactNumber', index: 'companyContactNumber', width: 100, align: 'left' },
{ name: 'descript', index: 'descript', width: 60, align: 'left' },
{ name: 'CustomerName', index: 'CustomerName', width: 100, align: 'left' },
{ name: 'orderNotes', index: 'orderNotes', width: 125, align: 'left' },
{ name: 'internalNotes', index: 'internalNotes', width: 175, align: 'left' },
{ name: 'DsrFirstName', index: 'DsrFirstName', width: 70, align: 'left' },
{ name: 'ProductionDate', index: 'ProductionDate', width: 60, align: 'left' }
],
pager: jQuery('#Scheduledpager'),
rowNum: 20,
rowList: [5, 10, 20, 50],
sortname: 'Id',
sortorder: "desc",
viewrecords: true,
imgpath: themeURL,
height: '300px'
})
13:39
Moderators
30/10/2007
Hello,
Which version of jqGrid is used?
I see the option imgpath which is deprecated.
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.
12:22
Moderators
30/10/2007
Hello,
Try to set not height : '300px', but height:300,
Also try to set the width of the grid something like width : 500
and let me know if this help
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.
14:15
12/01/2010
I can confirm the issue with version 3.7. In my case I'm setting shrinkToFit to true, but the grid is showing a horizontal scroll bar only if there is also a vertical scroll bar. That is, it appears to be calculating the necessary width to fit the grid before the data is loaded (I'm using xml loaded from a URL). Once the data is loaded and a vertical scroll bar is needed, then the content no longer fits and jqGrid draws in a horizontal scrollbar.
Interestingly, resizing the grid (I've enabled that option) by dragging the bottom right corner even a millimeter, will cause the columns to shrinkToFit again and now take into account the vertical scroll bar space, so the horizontal scrollbar goes away.
I've been unable to figure a workaround by trying to fire resize events into the grid, but I'm probably trying the wrong thing so far. Could this be marked as a bug to fix in the grid for the next release?
13:43
29/11/2013
After lot of search I got a perfect soltuion. You can find here: http://rapidsol.blogspot.com/2.....llbar.html
Most Users Ever Online: 715
Currently Online:
30 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