Multiselect

QuestionsMultiselect
Chao Shun Jeng asked 6 years 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 6 years 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
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 6 years 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
Grid 4 PHP Framework
 
Your Answer

4 + 14 =

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?