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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:12:15+00:00 2026-06-16T00:12:15+00:00

I have a simple demo that gets a greater-than filter working on a table

  • 0

I have a simple demo that gets a “greater-than” filter working on a table of test scores. The source can be found by clicking here. If you scroll down to var myfilter, you will see that I have one of the rules commented out.

var myfilter = {
    groupOp: "AND",
    rules: [
        {field: 'score', op: 'gt', data: 70},
        //{field: 'grade', op: 'in', data: [10, 11, 12]}
    ]
};

This rule says to only select rows for grades 10, 11, 12. However, when I uncomment this rule it doesn’t work. In fact, it even breaks the table. Is this a bug, or am I going about it wrong?

To be clear, I simply want to find a way to use the op: ‘in’ feature. The jqGrid wiki on searching lists op: ‘in’ under the values for sopt, so there should be a way to do it…

  • 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-16T00:12:15+00:00Added an answer on June 16, 2026 at 12:12 am

    You are right. The current implementation of local searching don’t support "in" operation. It uses just "eq" instead.

    So I would suggest you to use block with "eq" operations instead of "in". The example from your question could be rewritten to the following:

    var myfilter = {
        groupOp: "AND",
        rules: [
            {field: 'score', op: 'gt', data: 70},
        ],
        groups: [
            {
                groupOp: "OR",
                rules: [
                    {field: 'grade', op: 'eq', data: 10}
                    {field: 'grade', op: 'eq', data: 11}
                    {field: 'grade', op: 'eq', data: 12}
                ]
            }
        ]
    };
    

    See description of the full format of filters here.

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

Sidebar

Related Questions

I have a very simple demo working that uses Webkit transforms and transitions for
I have simple php validation form that is halfway working. If you leave the
I'm making a simple WebGL demo. I have a simple vertex shader that takes
I am about to create a simple demo in flash where I have 3
I have simple table in Sybase -- Creating table 'SimpleText' CREATE TABLE [dbo].[SimpleText] (
I have simple database - one table with 6 collumns. 3 of them i
I have simple win service, that executes few tasks periodically. How should I pass
Does anyone have any experience positioning the jquery.datepicker found at http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html Functionality-wise it works
i have a string like this: some_string=A simple demo of SMS text messaging. +
i have a string like this: some_string = A simple demo of SMS text

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.