Show Hidden Columns

QuestionsShow Hidden Columns
Igor Girao asked 2 months ago

Hello Abu,

I want to make the columns hidden when we click on cache appear. I’m using state persistence.

Is there a way to make it appear?

See source and image.
Cache

3 Answers
Abu Ghufran Staff answered 2 months ago

Hello,

I’m unable to understand the issue you are facing. Do you want to hide certain columns when you click cache button on toolbar?

or share screen recording https://screen-recorder.com

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Igor Girao answered 2 months ago

Hi Abu,

Sorry for the poor explanation of the problem I’m having.

I’ve included a video link showing how the tool works. When we hide the columns and click to clear the cache, the columns don’t reappear.

In addition to the video, I’ve attached the saved page.

Thank you for your attention.

Files

Abu Ghufran Staff answered 1 month ago

Hi,

I understand the issue now.

You need to update following code to remove cookies. Rest code seems fine.

On line 1304 on nfe_cab.php

Cookies.remove('<?= $keycache ?>');

Should be replaced with:

Cookies.remove('jqgrid_colchooser_list1');
Cookies.remove('jqgrid_colchooser_hide_list1');

Where list1 is your grid id.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Igor Girao replied 1 month ago

Hi Abu,

It worked, thank you very much.

Your Answer

1 + 19 =

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?