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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:20:16+00:00 2026-06-18T03:20:16+00:00

I am using jqgrid with multiplegroup option true for search. My filter looks like

  • 0

I am using jqgrid with multiplegroup option true for search. My filter looks like the following:

{"groupOp":"OR",
"rules":[{"field":"Total_case","op":"eq","data":"29"}],
"groups":[{"groupOp":"AND",
"rules":[{"field":"Total_case","op":"eq","data":"2"},{"field":"percent","op":"eq","data":"100"}],
"groups":[]}]}

I have rows with both total case = 2 ,percent = 100 and total case = 29. Since outer condition is “OR” condition, I am expecting two rows. However it displays no record. What is wrong?

  • 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-06-18T03:20:17+00:00Added an answer on June 18, 2026 at 3:20 am

    The question seems be duplicate from answer your previous question. I just wrote the answer on your original question where I confirmed that it’s a bug in the current version of jqGrid. As a workaround I suggested to modify requests having "groupOp":"OR" and both non-empty parts rules and groups so that the rules part will be inserted as new additional group inside of groups.

    On the example which you posted one can first use jQuery.parseJSON to convert the JSON string postData.filters which you posted to the object form

    {
        groupOp: "OR",
        rules: [
            {field: "Total_case", op: "eq", data: "29"}
        ],
        groups: [
            {
                groupOp: "AND",
                rules: [
                    {field: "Total_case", op: "eq", data: "2"},
                    {field: "percent", op: "eq", data: "100"}
                ],
                groups: []
            }
        ]
    }
    

    Then one could test that groupOp is “OR” and both rules and groups are non-empty arrays. In the case one can move the rules part inside of groups. In other words one could convert it to the following object

    {
        groupOp: "OR",
        rules: [],
        groups: [
            {
                groupOp: "AND",
                rules: [
                    {field: "Total_case", op: "eq", data: "2"},
                    {field: "percent", op: "eq", data: "100"}
                ],
                groups: []
            }
            {
                groupOp: "AND",
                rules: [
                    {field: "Total_case", op: "eq", data: "29"}
                ],
                groups: []
            }
        ]
    }
    

    At the end one can use JSON.stringify to convert the object back to JSON string and assign the results back to postData.filters.

    UPDATED: I posted the pull request which describe the changes which will do jqGrid internally during processing of the filtering/searching request.

    The demo uses the fix and it seems that all works correctly now.

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

Sidebar

Related Questions

I am using JQGrid Advance Search feature multipleSearch: true, multipleGroup: true . I am
I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
I am trying to understand the search functionality of multiplegroup: true. I am using
I'm using jqGrid to display some data to users. jqGrid has search functionality that
I am using jqgrid, and added one subgrid inside it, which looks like as
I am using jqgrid and I like to display custom message while deleting a
I am using jqGrid ( http://www.trirand.com/blog/ ) to display some read-only data. The resizeable
I'm using jqgrid tree grid with the following configuration colModel : [ { name:'id',width
I am using JQGRID for displaying data in tabular format. I have successfully accessed
I am using jqgrid to display data i need Click Here to Edit in

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.