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 7488215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:47:47+00:00 2026-05-29T14:47:47+00:00

I have a page that uses jqGrid with grids as subgrids. I also have

  • 0

I have a page that uses jqGrid with grids as subgrids. I also have jQuery UI slider control on my page. When the user changes the slider, I want to trigger a search on a field for the subgrid(s) which corresponds to the values behind the slider.

I’ve been looking at the documentation to try and find the best way to do this, but find this documentation very confusing. It also seems to be geared towards making another call to the server, which I don’t want to do since I’m using loadonce: true.

I’ve been able to acheive a work-around by iterating over the subgrid rows and calling hide() on the rows that don’t meet the criteria, but this does not hold up to pagination. What would be the best way to perform this type of externally triggered search on a subgrid?

  • 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-29T14:47:50+00:00Added an answer on May 29, 2026 at 2:47 pm

    I found a solution by reverse engineering the triggerToolbar method in the jqGrid source file (the pattern '[id^=grid_GR][id$=_t]' matches my subgrid IDs):

    function external_subgrid_search() {
        var ruleGroup = '{"groupOp":"AND","rules":[{"field":"Inv","op":"bw","data":"25"}]}';
        $('[id^=grid_GR][id$=_t]').each(function () {
            var p = $(this).getGridParam('postData');
            p.filters = ruleGroup;
            $(this).setGridParam({ postData: p, search: true }).trigger("reloadGrid", [{ page: 1}]);            
        });
    }
    

    This will do the same thing as if I had entered ’25’ into the search toolbar for the field ‘Inv’. Keep in mind that this is VERY stripped down. It ignores any beforeSearch or afterSearch functions you may have defined and assumes you have local data. But, hopefully it can act as a starting point for anyone else trying to do something similar.

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

Sidebar

Related Questions

I have a simple custom user control that uses jqGrid. the control is as
I have a page that uses the Telerik RadListView control and a Telerik RadDataPager
I have a page that uses jQuery with a small glitch. I managed to
I have a web page that uses three controls to allow a user to
I have a web page that uses jquery ajax to grab the table markup
I have a page that uses JQuery UI; in particular the Sortable interaction. The
I have a page that uses the jquery function: $(document).ready(function() { and I have
I have a page that uses the jQuery.swfobject plugin to embed 5 flash items
I have a page that uses jQuery's $.post() method to get some html and
I have a page that uses a TreeView control from ComponentArt. If I add

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.