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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:36:05+00:00 2026-05-22T20:36:05+00:00

I have jqGrid which is initially empty (I return data from server only when

  • 0

I have jqGrid which is initially empty (I return data from server only when _search is true).
This is grid code:

jQuery(gridId).jqGrid({
                    url : '/controller/GetData',
                    height : 100,
                    multiplesearch : true,
                    datatype : "json",
                    mtype : "POST",
                    rowNum : 10,
                    rowList : [ 10, 20, 30 ],
                    sortname : 'LBONumber',
                    sortorder : "desc",
                    viewrecords : true,
                    onSelectRow: jqGridRowSelected,
                    caption : 'DATA',
                    colNames : ["LBO","First name","Adress"],
                    colModel : [{"name":"LBONumber","index":"LBONumber","hidden":false},{"name":"FirstName","index":"FirstName","hidden":false},{"name":"Adress","index":"Adress","hidden":false},
    });

I have text field with id “LBO” and on click of a button I execute this code:

$(gridId).setGridParam({
                            search: true,
                            postData: {
                                'filters':$.param({
                                    'groupOp': 'AND',
                                    'rules': [{ "field": 'LBONumber', "op": 'eq', "data": function () { return $("#LBO").val() } }]
                                })
                            }
                        });

My problem is request body, which is:

_search=true&nd=1306834594225&rows=10&page=1&sidx=LBONumber&sord=desc&filters%5BgroupOp%5D=AND&filters%5Brules%5D%5B0%5D%5Bfield%5D=LBONumber&filters%5Brules%5D%5B0%5D%5Bop%5D=eq&filters%5Brules%5D%5B0%5D%5Bdata%5D=333

It should say ...filters=..., not ...filters%5B... and I don’t want to process it on server, it must be a proper way of making this work. I know that this is actually properly serialized object, but I need this my function to work same way as jqGrid’s included search, as I already have server-side code done for that case.

  • 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-22T20:36:06+00:00Added an answer on May 22, 2026 at 8:36 pm

    You construct the filters in the wrong way. Instead of usage $.param the value of filters must be JSON encoded (see the documentation) with respect of JSON.stringify for example. The answer contain the corresponding code example.

    UPDATED: The definition of postData can be about the following

    postData: {
        filters: function () {
            return JSON.stringify(
                { groupOp: "AND", rules: [
                    { field: 'LBONumber', op: 'eq', data: $("#LBO").val() }
                ]}
            );
        })
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jqGrid where I get data at once from server (java) in
I have a jqgrid that contains some data, the first column of which is
I have the below code in my jqgrid <script type=text/javascript> jQuery(document).ready(function() { var grid
I'm going to simplify this question. I have a jqgrid instance which posts an
I have a checkbox column in my JqGrid which get loaded from DB, so
I have a jqgrid on my page which loads the first page of data
I have a jqGrid populated with data, but I want to change how this
I have a jqgrid in a modal popup that has data dependent on some
I have a jqGrid with which users will select records. A large number of
I have jqGrid 3.5 (full) mostly working. I have it retrieving data with 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.