Disable Row Selection

QuestionsDisable Row Selection
Greg asked 8 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 8 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

9 + 4 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?