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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:36:09+00:00 2026-06-08T00:36:09+00:00

I have a jqgrid with multiselect enabled. But I don’t want to check the

  • 0

I have a jqgrid with multiselect enabled. But I don’t want to check the checkbox when I click on the row.

Using the code snippet

$("#yourGrid").jqGrid("setGridParam", {
    beforeSelectRow: function(rowId, e) {
       return $(e.target).is("input:checkbox");
    }
});

from this post I was able to refrain from selecting the checkbox but now I can’t highlight a particular row. How can I enable highlighting of a row keeping multiselect on row click disabled.

  • 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-08T00:36:10+00:00Added an answer on June 8, 2026 at 12:36 am

    There is a property on the grid that should do this for you, according to the API.

    multiboxonly
    

    This option works only when the multiselect option is set to true.
    When multiselect is set to true, clicking anywhere on a row selects
    that row; when multiboxonly is also set to true, the multiselection is
    done only when the checkbox is clicked (Yahoo style). Clicking in any
    other row (suppose the checkbox is not clicked) deselects all rows and
    selects the current row.

    With this you shouldn’t need your beforeSelectRow function:

    jQuery("#grid").jqGrid({
         . . .
         multiselect: true,
         multiboxonly: true
         . . .
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have jqgrid in form , i want when user click in row this
I have a jqGrid with multiselect:true. In a click event of a button I
Its like I have multiselect option in Jqgrid in which i want to pass
I have a jqgrid with multiselect true and I want to set some of
I have a jqGrid with multiselect. I would like to be able to pre-check
hi all i have jqgrid and set update inline . i wrote this code
I have a jqgrid with the add dialog enabled for adding new rows. The
I have a jqGrid on a page and users can click a button to
I have a jqGrid with a subgrid. I want to sort the subgrid so
I'm using jqgrid to display a list of sites and I want to do

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.