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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:44:22+00:00 2026-05-17T14:44:22+00:00

We are using jqGrid searching .. how can you determine if a user has

  • 0

We are using jqGrid searching.. how can you determine if a user has clicked Search, Reset, or has closed the search window?

There is an onClose event but it doesn’t seem to have any parameters that indicate the action.

??

  • 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-17T14:44:22+00:00Added an answer on May 17, 2026 at 2:44 pm

    The answer on your question is depend on how you want to use the information. If you want that your callback function will be called you can use beforeShowSearch together with onClose:

    $("#list").jqGrid('navGrid', '#pager',
        {edit: false, add: false, del: false, search: true, refresh: true},// options
        {}, // settings for edit
        {}, // settings for add
        {}, // settings for delete
        {beforeShowSearch: function(form){
            $('.ui-search',form).click(function(){
                alert("in onSearch");
            });
            $('.ui-reset',form).click(function(){
                alert("in onReset");
            });
         },onClose: function(data){
                alert("in onClose");
         }
        } // search options
    );
    

    You should take in consideration, that your onSearch and onReset functions will be called after the main event handler, so the request to search or the request to reset is already sent. If you need to have the information before the search or reset the usage of beforeRequest request seems me very good. If you need to have search rules you can use $("#list").jqGrid('getGridParam','postData') or just $("#list")[0].p.postData. The postData has searchField, searchOper and searchString (in case of Single Searching) or filters (in case of Advanced Searching) set. In case of “Reset” the parameters are empty: “”.

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

Sidebar

Related Questions

I am using jqgrid and have simple searching enabled. I am wondering if there
I'm using jqGrid to display some data to users. jqGrid has search functionality that
I'm using jQGrid and I'm wondering if there is a way to get the
I am using jqgrid and using the inline editing mode and can't figure out
I am using jqgrid on EF4 MVC3 (C#). I based search on this @Oleg
Question : using jqgrid to show data of a table. table has foreign key
I'm using jqgrid's form editing feature. Can I programmatically set the readonly attribute of
I am using jqGrid 4.0.0, beforeProcessing never gets fired for each postBack, it has
Using jquery's jqGrid plugin, I have it setup to do sorting, paging, and searching.
i have a problem using a jqGrid, more specific the loadComplete callback event. When

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.