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
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,
Hello,
Please recheck it after updating latest version. Also try putting alter(‘test’) statement to verify if it is calling this beforeSelectRow event handler.
Your Answer