Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6956045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:49:00+00:00 2026-05-27T14:49:00+00:00

The expand/collapse button does not work properly with jqGrid when using the re-sizable grid

  • 0

The expand/collapse button does not work properly with jqGrid when using the re-sizable grid with mouse.

The jqGrid is wrapped by a dragable div that sets the width/height of the grid. When I collapse the Grid it continues to show the ‘resize’ div even though the grid itself is collapsed.

Anyone have suggestions for this issue? Even the jqGrid Demo has this issue. The issue only happens after you resize it once first. Then try to collapse the Grid.

http://trirand.com/blog/jqgrid/jqgrid.html

This demo is replicating my issue. I am using the exact same code. You will notice that the grid also looks rather ugly when dragging.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:49:01+00:00Added an answer on May 27, 2026 at 2:49 pm

    So whenever you add the ability to resize the jqgrid it actually wraps the grid inside of a grid that is generated after you resize your grid. Jqgrid appears to statically set values in inline css which causes some problems.

    What I have done to fix this problem is look for the button that will trigger this event. In the case of jqgrid there is an tag with a class of ‘HeaderButton’ (it is the button in the upper right hand corner). So I used jQuery to target the ‘click’ event and then changed the height of the ‘resize’ wrapper div to ‘auto’.

    So essentially I did this:

    //This first line select an element with a class="HeaderButton"
    $('.HeaderButton').click(function () {
    //Find the ID of the div that jqgrid is creating and replace RESIZEGRIDID with appropriate name
          if ($('#RESIZEGRIDID "/>').attr('data-status') != 'hidden' || $('#RESIZEGRIDID ').attr('data-status') == undefined) {
          $('#RESIZEGRIDID "/>').attr('data-status', 'hidden');
          $('#RESIZEGRIDID "/>').css({ 'height': 'auto' });
          } else {
          $('#RESIZEGRIDID "/>').attr('data-status', 'active');
          $('#RESIZEGRIDID "/>').css({ 'height': 'auto' });
          }
    

    Hopefully this help 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’ve two div boxes that I’m using as a expand-collapse with some javascript but
I am implementing a expand collapse feature on my page using div tag. I
The CollapsiblePanelExtender seems primarily designed to collapse/expand things in response to user mouse events.
I am trying to alter the button text for a expand/collapse button. Basically, a
I am encountering this error whenever the button is clicked to collapse/expand the panel.
Is there any method to expand/collapse the grid by clicking on the caption layer?
I'm looking for a way to move the expand/collapse button that appears when you
Take a look at example. <button id=go>Expand</button> <button id=go1>Collapse</button> I want if someone press
I have a div in default.aspx which has a masterpage. Masterpage has a expand/collapse
How do I expand/collapse an html field in Firefox? I incorporated a few JavaScript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.