Multiselect

QuestionsMultiselect
Chao Shun Jeng asked 7 months ago

I made a multiselect in a grid,
but I want to disable some of rows to prevent users to select them.

How to do it?

Regard,

Chao Shun Jeng

2 Answers
Abu Ghufran Staff answered 7 months ago

Hi,
If you need to diabled row id 3, then:

$grid[“beforeSelectRow”] = “function(id){ if (id == 3) return false; }”;
$grid[“loadComplete”] = “function(){ $(‘#jqg_list1_3’).hide(); }”;

$g->set_options($grid);

Regards,

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Abu Ghufran Staff answered 7 months ago

Hello,

Please recheck it after updating latest version. Also try putting alter(‘test’) statement to verify if it is calling this beforeSelectRow event handler.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

10 + 3 =

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:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!