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

  • Home
  • SEARCH
  • 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 3721230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:29:06+00:00 2026-05-19T05:29:06+00:00

I have a jqGrid that is using the toolbar search with some text searches

  • 0

I have a jqGrid that is using the toolbar search with some text searches for businessName and a dropdown for states. I am using the grouping feature to group by state and this works great. I have also set the option of groupCollapse to true so basically loads a grid of states with their count of businesses.

groupText: ["{0} - {1} businesses"],
groupCollapse:true

Then for my toolbar search bar filterToolbar

$("#businessGrid").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, 
    afterSearch : function(){
   $("#businessGrid").jqGrid('setGridParam', 
          {'groupCollapse':false}
      ).trigger('reloadGrid');
      var x = $("#businessGrid").jqGrid('getGridParam','groupCollapse');
      console.log(x);
    }

});

When I log [ x ] it is indeed setting the gridParam to false but when I trigger a reload of the grid it doesn’t un-collapse the groups.

Any ideas would be appreciated. If its not possible I’ll have to come up with a different solution, but this behavior would be ideal.

Thanks,
Tim

  • 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-19T05:29:07+00:00Added an answer on May 19, 2026 at 5:29 am

    think i found the solution removes the grouping which is fine since only one state can be chosen at once any way.

    ///if blank option (all states option) is chosen reapply grouping 
    if($("#gs_StateFull").val() == "") {
       $("#businessGrid").jqGrid('setGridParam',{'grouping':true}).trigger('reloadGrid');
    } else {
       $("#businessGrid").jqGrid('setGridParam',{'grouping':false}).trigger('reloadGrid');  
    
    }
    

    EDIT: Since groupCollapse inside the groupingView object it needed to be set using the syntax below. THis keeps the grouping intact as well

    ///if blank option (all states option) is chosen reapply grouping 
    if($("#gs_StateFull").val() == "") {
       $("#businessGrid").jqGrid('setGridParam',{groupingView: { groupCollapse : true} }).trigger('reloadGrid');
    } else {
       $("#businessGrid").jqGrid('setGridParam',{groupingView: { groupCollapse : false} }).trigger('reloadGrid');   
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery UI Button that I'm placing in a jqGrid toolbar but
I have a jqgrid in a modal popup that has data dependent on some
I am using jqGrid with a search toolbar. Now for several columns I do
I'm building tables using jqGrid with a filter toolbar to let users filter the
I'm using jqGrid for a JIRA plugin and have included the jquery and jqgrid
I am using jQuery 1.4 and jqGrid 3.8 beta, Here I have used jqgrid
I have a code that fetches a list from DB. Using that returned array
I have a grid that is currently using Telerik Grids, I would like to
I'm writing a MVC website and using jqGrid. I have managed to get it
I have a script that appends some rows to a table. One of the

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.