Filter columns icons disapears

QuestionsFilter columns icons disapears
Alberto asked 7 years ago

Hi,

I have a grid with 12 columns, If I filter those columns to show only 2 columns, the grid resizes and I can't export the info because the EXPORT button is not visible.

7 Answers
Abu Ghufran answered 7 years ago

Can you share screenshots?
https://prnt.sc/

Alberto answered 7 years ago

Hi, screeshots:

All the columns:
https://prnt.sc/g5rdq4

Filtering:
https://prnt.sc/g5rdzc

Thanks

Abu Ghufran answered 7 years ago

Hello,

Are you using persist settings with this grid?

If yes, for quick fix, you can downgrade the jqgrid-state.js and include this JS file.

<script src="//yourjavascript.com/2142911107/jqgrid-state.js" type="text/javascript"></script>

And remove this rawgit.com/…./jqGrid.state.js script.

If not, please share me code to regenerate case.

Alberto answered 7 years ago

Lecturas:
https://pastebin.com/4Vk6hdYJ

Headers, Footers and others:
https://pastebin.com/QdvLRXW0

Abu Ghufran answered 7 years ago

Hi,

The simplest solution is to set responsive:true

$opt["responsive"] = true;
$g->set_options($opt);

It will also make toolbar and full width issue fixed
http://prntscr.com/g61cho

Alberto answered 7 years ago

Hi,

$opt["responsive"]=true;

don't change anything.

I've solve it by this steps:

1) Comment all lines that set width cols:
//$col["width"] = XXX;

2) In grid options:
$opts["autowidth"]=true;
$opts["autoresize"] = true;
$opts["resizable"] = true;
$g->set_options($opts);

The result:
https://prnt.sc/g692ca

Abu Ghufran answered 7 years ago

Ok. The reason is 'autoresize' is replaced with 'responsive' in latest version.
Before v2.2, property name was autoresize and changed in this version.

Responsive design settings is updated in documentation.
http://www.phpgrid.org/docs/#Responsive_Design

Your Answer

2 + 10 =

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?