I have another problem.
In the show/hide columns the fields that are set to hidden are shown without check but if you export the grid the fields are exported.
To haven't these fields in the export you must open the show/hide columns and click on the ok button.
I ask: isn't possible that the fields hidden aren't exported and if you want you can check these in the show/hide columns?
I didn't explain well.
Normally the hidden fields ($grid["hidden"]=true) are unchecked in the "show/hidden dialog" and aren't exported.
But if you don't enter in the "show/hidden dialog" and click on the ok button these fields are, instead, exported.
It's possible to change this behaviour?
Thanks in advance
Yes, to initially stop these fields from export (before dialog selection) you need to set:
$col["export"] = false;
Excuse me Abu.
One more time I didn't explain properly.
In the "show/hidden dialog" the hidden fields ($grid["hidden"]=true) are unchecked but are exported anyway. For not exporting these columns you need to open the "show/hidden dialog" and click on the ok button.
If you set $col["export"] = false; you will never export.
Vice versa, for exporting the hidden columns, if necessary, I would like to open the "show/hidden dialog", check these columns and click on the ok button.
In the screenshoot sequence below you can view:
1. a code fragment of the fields hidden declaration
2. the grid
3. the show-hidden dialog
4. the PDF export
5. the show-hidden dialog in witch I clicked ok button
6. the final PDF export
I would like to obtain this final export without enter in the show-hide dialog
Thanks in advance
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!
Thanks for your feedback!