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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:00:22+00:00 2026-06-01T06:00:22+00:00

Does jqGrid just have any callback after single field search? The onSearch callback fires

  • 0

Does jqGrid just have any callback after single field search?

The onSearch callback fires only when the ‘Search’ button is clicked, so if you want to get the records of the search with $("#grid").getGridParam('records'); you get the previous requested rows’s count.

Edit:

This is the code where I use onSearch

onSearch:function(){
    var ofilter = $("#competitors").getGridParam("postData");
    var jqSearchQuery = "";
    $.each(ofilter, function(key, val) { jqSearchQuery += key + '=' + val + '&' ;})
    selectopts = new Array();
    selectopts['cn'] = 'contiene';
    selectopts['bw'] = 'empiece por';
    selectopts['eq'] = 'igual';
    selectopts['ne'] = 'no igual';
    selectopts['lt'] = 'menor que';
    selectopts['gt'] = 'mayor que';
    selectopts['ew'] = 'termina por';
    var records = $("#competitors").getGridParam('records');

    searchResult = records+" resultados para la b&uacute;squeda <b>\""+ofilter.searchField+" "+selectopts[ofilter.searchOper]+" "+ofilter.searchString+"\"</b>";
    $('#searchResult').html('<p>'+searchResult+'</p>');
}
  • 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-01T06:00:23+00:00Added an answer on June 1, 2026 at 6:00 am

    You can use onSearch callback which will be called before starting reloading with new filtered options.

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

Sidebar

Related Questions

Pressing search button in jqgrid toolbar opens advanced search window. Pressing enter key does
Does anyone have any recommendations of tools that can be of assistance with moving
Producr codes can contain only uppercase charcters. If lowercase characters are enterd, jqgrid does
What does 'is in' and 'is not in' mean in jqgrid search filter?
Any ideas why multiple calls to a function that does the following grid.jqGrid('GridUnload'); createGrid();
I have problems after upgrading: jqGrid from 3.5.3 to 3.8.2 jquery from 1.3.2 to
I have just started using jqGrid , and I have some tables that I
The expand/collapse button does not work properly with jqGrid when using the re-sizable grid
Does jqGrid's datefmt support the JavaScript date syntax or only the PHP date syntax
Does jqGrid support zebra striping? I can't see any examples. By zebra striping I

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.