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
Resizing Grid issue
25/11/2009
11:31
Avatar
lucasbob
Guest
Guests

Hello,

in order to have a better resizable grid (see New in version 3.6 -> Resizing grid  example in jqGrid Demos page ), we can replace:

jQuery("#resize").jqGrid('gridResize',{minWidth:350,maxWidth:800,minHeight:80, maxHeight:350});

with:

jQuery("#resize").jqGrid('gridResize', {minWidth:350, maxWidth:1280, minHeight:400, maxHeight:1024, 
        resize: function(event, ui) {

            var wjq = $('.ui-jqgrid-bdiv').width();

            $('#presize').width(wjq);  //PAGER_ID
            $('#gview_resize').width(wjq);  // gview_GRID_ID
            $('.ui-state-default.ui-jqgrid-hdiv').width(wjq);
        }

});

This example code can be modified and included directly in jqGrid without difficulty, at least if it works for you...

Regards

25/11/2009
13:54
Avatar
bhogsett
Cleveland, Ohio, USA
Member
Members
Forum Posts: 19
Member Since:
21/09/2009
sp_UserOfflineSmall Offline

The revised resize works for me. But I am not sure what it is doing that the original resize did not do.

27/11/2009
01:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

@lucasbob,

Thanks, so we must add some other thing like top and bottom tolbar, footer row too. Let stay this as is. If someone want to do it so, they will use your code for particular grid.

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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
58 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