Home › Forums › Guriddo jqGrid JS › Help › Multiselect initialization
After the grid is rendered, I currenty do the following to set the multiselect checkboxes of rows whose id is in the selected_user_ids array:
jQuery.each(selected_user_ids, function() {
Hello,
If you use 3.5 version you can do (assuming the id of the grid is gridid)
(not tested)
$(“#cb_jqg”,”#gbox_gridid”).trigger(“click”).attr(“checked”,true);
Regards
Tony
I'm not quite sure where this line should go and what it's supposed to do. Can you help me out with a lil explanation?
Firstly I think you want to select all, which is not true of course. In you case I think you code is ok. We can do this in other way, but I think the speed will be the same.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS