JQGrid browser window resize -> grid resize

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JQGrid browser window resize -> grid resize

Sabine Manaa
Hi,
 
I use JQGrid.
I want the grid's width to be resized when the user changes the browser window's size.

I have to call this
jQuery("#targetGrid").setGridWidth(width);
(http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options&s[]=setgridwidth)

I dont know how to implement this.

Can anyone help?

Greetings
Sabine
Reply | Threaded
Open this post in threaded view
|

Re: JQGrid browser window resize -> grid resize

Karsten Kusche
Try that:

http://stackoverflow.com/questions/2996431/detect-when-a-window-is-resized-using-javascript

Karsten

-- 
Karsten Kusche - Dipl. Inf. (FH) - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812 

Am Mittwoch, 15. Mai 2013 um 11:22 schrieb Sabine Knöfel:

Hi,
I use JQGrid.
I want the grid's width to be resized when the user changes the browser
window's size.

I have to call this
jQuery("#targetGrid").setGridWidth(width);

I dont know how to implement this.

Can anyone help?

Greetings
Sabine



--
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: JQGrid browser window resize -> grid resize

Sabine Manaa
Hi Karsten,

thanks that brought me to the solution:

rkaJs

^'jQuery(window).resize(function () {
     jQuery("#gridID").setGridWidth(jQuery(window).width() * 0.5);
    });'

Sabine

On Wed, May 15, 2013 at 11:29 AM, Karsten Kusche [via Smalltalk] <[hidden email]> wrote:

-- 
Karsten Kusche - Dipl. Inf. (FH) - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812 

Am Mittwoch, 15. Mai 2013 um 11:22 schrieb Sabine Knöfel:

Hi,
I use JQGrid.
I want the grid's width to be resized when the user changes the browser
window's size.

I have to call this
jQuery("#targetGrid").setGridWidth(width);

I dont know how to implement this.

Can anyone help?

Greetings
Sabine



--
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/JQGrid-browser-window-resize-grid-resize-tp4687703p4687726.html
To unsubscribe from JQGrid browser window resize -> grid resize, click here.
NAML