about "showhidecolumns"

Questionsabout "showhidecolumns"
Chao Shun Jenq asked 11 years ago

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
Abu Ghufran answered 11 years ago

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

15 + 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?