as far as i know,we can set the "showhidecolumns" to true or false.
but
Q1:can i hide the text "Columns" in toolbar?
Q2:when user click the "showhidecolumns" buttons,
the field view will show $col["title"] and $col["name"] both ,
but i don't want to show $col["name"],
how to do it??
Regard!
1 Answers
A1: https://phpgrid.desk.com/customer/portal/questions/1256843-remove-column-selection-button-in-grid
A2: Goto jqgrid_dist.php, search for line
jQuery("#<?php echo $grid_id?>").jqGrid('setColumns');
and replace with
jQuery("#<?php echo $grid_id?>").jqGrid('setColumns',{colnameview : false});
Your Answer