Show/Hide Columns with checkboxes

QuestionsShow/Hide Columns with checkboxes
Melissa asked 11 months ago

Hi. How do I show checkboxes in the show/hide columns modal? Right now it just highlights the columns that are visible where you can toggle between them. The example in ‘Alternate Row’ shows a lot more features than what I’m seeing. Also, notice that there’s two columns that are listed as null. Is that because their ‘search’ property is set to false? Thanks.

View post on imgur.com

 

 

 

7 Answers
Abu Ghufran Staff answered 11 months ago

For those column you want to hide (null = no title columns), you need to set:

$col[“hidedlg”] = true;

To have checkboxes, you need to include these JS/CSS files.

http://phpgrid.org/demo/demos/appearance/alternate-row.phps LINE 161, 162

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Melissa answered 11 months ago

Thanks!

Scott answered 11 months ago

This appears to work only once, after that, when you click on columns a second time, it reverts back to the original format with highlighting, no checkboxes

Melissa answered 11 months ago

Yes, I’m experiencing the same issue as Scott.

Abu Ghufran Staff answered 11 months ago

Ok, i’ll be updating back after review.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Melissa answered 11 months ago

Hi Abu,

Any update on this issue? Thanks.

Abu Ghufran Staff answered 7 months ago

This ticket remain unanswered due to an issue on our side.

Please try using these CDN js/css files. Rawgit is closing and there could be issue in loading files from there.

CSS: https://cdn.jsdelivr.net/gh/wenzhixin/[email protected]/multiple-select.css
JS: https://cdn.jsdelivr.net/gh/wenzhixin/[email protected]/multiple-select.js

I tested it multiple times and unable to generate this issue.

Select Columns multiple times

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

3 + 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 / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!