Disable Row Selection

QuestionsDisable Row Selection
Greg asked 3 years ago

Hi,

I have a grouped grid where the first column is the checkbox to select the rows and highlight them accordingly.

Is it possible to make this the only event that highlights the row? Right now our users can click anywhere on the grid and it automatically checks the box, but they don't always want it to – they only want to do it when they click on the checkbox.

Thank you – Greg.

1 Answers
Abu Ghufran answered 3 years ago

Pasting from faq:

Q) How to make select row only by checkbox?

Following code will enable row selection by checkbox.

$opt["multiselect"] = true;
$opt["beforeSelectRow"] = "function(rowid, e) { return $(e.target).is('input[type=checkbox]'); }";
$g->set_options($opt);

Your Answer

11 + 12 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!