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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:58:05+00:00 2026-06-09T18:58:05+00:00

I have exactly the same experience as reported in the JQGrid forum . If

  • 0

I have exactly the same experience as reported in the JQGrid forum.

If I copy and paste some text via the mouse into a search field (i.e. right click, “paste”), a search is not triggered. If I copy and paste via the keyboard (e.g. Ctrl + C and Ctrl + V), then the search is triggered.

I.e. it seems that search is triggered on keypress/keyup only – how can I configure the grid to recognize mouse paste events as well?

  • 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-09T18:58:07+00:00Added an answer on June 9, 2026 at 6:58 pm

    You have two options you could try.

    Option 1:

    You could set your toolbar to search on enter only by setting the option: searchOnEnter to true when setting up your toolbar. This will require enter to be clicked before the filter will happen, regardless of how it is entered

    $("#grid_id").jqGrid('filterToolbar',{ searchOnEnter: true });
    

    Option2: (Updated to fix errors)

    Detect a paste event with jQuery and then call the api to trigger a toolbar search.

    var headers = $('.ui-th-column');
    $.each(headers, function(index, item) {
         var div = $(this).children('div');
         if (div.length > 0) {
             var input = div.children('input');
             if (input.length > 0) {
                 $(input).bind('paste', function(e) {
                      var sgrid = $("#grid_id")[0];
                      sgrid.triggerToolbar();
                  });
             }
         }
    });
    

    note: it does not appear that there is a way to trigger the search using the new api.

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

Sidebar

Related Questions

The question I have is exactly same in requirement as How to pass mouse
I have two load balanced servers each running exactly the same copy of various
Looks like operator new and operator new[] have exactly the same signature: void* operator
vb.net windows forms question. I've got 3 forms that have exactly the same functions,
I have two tables with exactly the same fields. Table A contains 7160 records
I have classes that are named exactly the same across different plug-ins that I
Scenario I have an TWO datbase tables of exactly the SAME STRUCTURE. The difference
I have a two models that are similar, but not exactly the same. Here's
I have been looking a lot at SOA recently. Isn't CORBA exactly the same
I have two <hr> s both with exactly the same class, and no other

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.