Cesar Cavazos
Cesar Cavazos

Reputation: 271

jqGrid disable single selection

I'm using PHP with jqGrid to show the data.

I need to disable the selection function. Just show data.

Do anybody know how can I do that?

I only see examples of multiselection rows.

Upvotes: 2

Views: 852

Answers (2)

Cesar Cavazos
Cesar Cavazos

Reputation: 271

I was referring to disable single selection the answer is this in the constructor of the grid:

beforeSelectRow : function (){
    return false;
}

So that prevent the selection happend.

Upvotes: 2

Nelson M
Nelson M

Reputation: 181

I'm a little confused.

Are you referring to single/multiselecting rows grid option "multiselect:"?

If so:

  1. find and remove the "multiselect:true" option from the grid definition. or
  2. find and change the "multiselect" value from "true" to "false".

Upvotes: 0

Related Questions