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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:52:47+00:00 2026-05-26T00:52:47+00:00

I have been using jqGrid for a few months now, and I have made

  • 0

I have been using jqGrid for a few months now, and I have made a handful of data grids with the filterToolbar option:

$('#grid_id').jqGrid('filterToolbar');

It has worked perfectly in the past (passing an array of POST variables to the php page defined in the url option in the jqGrid definition, of which there is one variable “_search:true”). The most recent grid I made, after I press enter on the filterToolar, it just reloads the grid… passing “_search:false” to the php script. Does anyone know why this would be happening. here is the script;

$('#processed_list').jqGrid({
    url:'/phpAJA?&sql=' + sql,
    editurl: '/phpAJAX?sql=' + sql,
    height: 225,
    width: 600,
    datatype: 'xml',
    mtype: 'POST',
    colModel:[
        {name:"Invoice Num",index:"InvoiceNum",width:"8"},
        {name:"Job Num", index:"JobNum",width:"8"},
        {name:"Customer",index:"Customer",width:"16"},
        {name:"Emailed To",index:"to_email",width:"16"},
        {name:"Date Processed",index:"timestamp",width:"16"}
    ],
    pager: '#pager',
    rowNum:10,
    rowList:[10,20,30],
    sortname: 'invid',
    sortorder: 'desc',
    viewrecords: true,
    gridview: true,
    caption: 'Processed Invoices',
    editable: false
});
$("#processed_list")
.jqGrid('navGrid', '#pager', {edit: false,add: false, del: false, search: false, refresh:true},{},{},{},{},{})
.jqGrid('navButtonAdd',"#pager",{
    caption:"reprint invoice", buttonicon:"ui-icon-print", onClickButton:function(){ ...some function... }, position: "last", title:"", cursor: "pointer"
})
.jqGrid('filterToolbar');

Like I said, it all works except when I try the toolbarFilter search, it just reloads the grid (passing “_search:false” to the php script).

Any help would be greatly appreciate.

Thanks.

  • 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-26T00:52:47+00:00Added an answer on May 26, 2026 at 12:52 am

    So I figured out the problem with a little trial and error. The filterToolbar was referencing the column names in the colModel, and not the index, which it should be referencing. So in the colModel option in the jqGrid definition I have to change the names to the real names in the database, and then add the other colName option to reset the column headings in the web page. See the following code:

    $('#processed_list').jqGrid({
        url:'/phpAJAX?sql=' + sql,
        editurl: '/phpAJAX?sql=' + sql,
        height: 225,
        width: 600,
        datatype: 'xml',
        mtype: 'POST',
        colNames:["Invoice Num","Job Num","Customer","Emailed To","Time Sent"],
        colModel:[
            {name:"InvoiceNum",index:"InvoiceNum",width:"8"},
            {name:"JobNum", index:"JobNum",width:"8"},
            {name:"Customer",index:"Customer",width:"16"},
            {name:"to_email",index:"to_email",width:"16"},
            {name:"timestamp",index:"timestamp",width:"16"}
        ],
        pager: '#pager',
        rowNum:10,
        rowList:[10,20,30],
        sortname: 'invid',
        sortorder: 'desc',
        viewrecords: true,
        gridview: true,
        caption: 'Processed Invoices',
        editable: false
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using WPF for a few years now and don't have any
I'm using a jqGrid with a filterToolbar and though I have been able to
We have been using Scrum for around 9 months and it has largely been
I have been using ajax loaded data for a while now, but I am
I have been using the CodeIgniter system for a while now - but it
I have been using Weblogic as my company used it. Now I want to
I've been using jqGrid since a couple of months and I'm really happy to
I have been using json.NET successfully in projects for some time now without any
I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
I have been using Trirand's jqGrid with ASP.NET MVC3 as well as the jquery.jqgrid

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.