Click here to Skip to main content
13,091,996 members (60,282 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


6 bookmarked
Posted 18 Nov 2011

Resizing grid when window is resized

, 18 Nov 2011
Rate this:
Please Sign up or sign in to vote.
How to resize a grid when browser window resizes.

In order to resize a grid when the browser window changes its size, you can subscribe to the window.onresize event using jQuery.

Here is an example:

$(window).resize(function() {

If you want to do the same using ExtJs framework, please see this link[^].


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Gregory Nozik
Software Developer (Senior) Superderivatives
Israel Israel
I’m a .net architect, focusing mainly on
writing a scalable components, My expertise is designing for optimal performance and scalability. Always in search
of new knowledge and ambitions.

Design Patterns, UML, OOP/OOD, .NET, C#, C++, STL, ATL, COM/COM+, VB/VB.NET, IIS, ISAPI,ASP/ASP.NET, WebServices, WCF,HTML/JavaScript, Ajax, XML/XSL/XSD, SQL

Personal blog

You may also be interested in...

Comments and Discussions

SuggestionResizing grid when Dialog or popup is resized Pin
Member 37365325-Jan-13 8:16
memberMember 37365325-Jan-13 8:16 
GeneralReason for my vote of 5 so simple Pin
itaitai26-Nov-11 22:11
memberitaitai26-Nov-11 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 18 Nov 2011
Article Copyright 2011 by Gregory Nozik
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid