Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Unwanted horizontal scroll bars
16/04/2010
00:50
Avatar
maitopoika
Member
Members
Forum Posts: 17
Member Since:
16/03/2010
sp_UserOfflineSmall Offline

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???

16/04/2010
01:58
Avatar
Preichow
Member
Members
Forum Posts: 13
Member Since:
24/03/2010
sp_UserOfflineSmall Offline

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.

16/04/2010
17:59
Avatar
maitopoika
Member
Members
Forum Posts: 17
Member Since:
16/03/2010
sp_UserOfflineSmall Offline

 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'
                })

19/04/2010
13:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

20/04/2010
00:50
Avatar
maitopoika
Member
Members
Forum Posts: 17
Member Since:
16/03/2010
sp_UserOfflineSmall Offline

I am using version 3.6.4

I don't think the imagepath has anything to do with the horizontal scroll bars though??

26/04/2010
12:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

29/06/2010
14:15
Avatar
ari
Member
Members
Forum Posts: 10
Member Since:
12/01/2010
sp_UserOfflineSmall Offline

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?

29/11/2013
13:43
Avatar
ashfaqzp
New Member
Members
Forum Posts: 1
Member Since:
29/11/2013
sp_UserOfflineSmall Offline

After lot of search I got a perfect soltuion. You can find here: http://rapidsol.blogspot.com/2.....llbar.html

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information