Export visible columns only to CSV

QuestionsExport visible columns only to CSV
Alberto asked 1 year ago

Hi Abu!

UsersĀ are using the search function to reduce data to just see the columns they need but then when they click the CSV-Export they get all data.

Can this be changed to provide data for only the selected columns?

Kind regards,

Alberto.

5 Answers
Abu Ghufran Staff answered 1 year ago

Please refer demo:

https://www.gridphp.com/demo/demos/export/export-selected.phps Line 42

Showhidecolumn property will also affect the columns which are going to be exported. The demo also restrict to select rows to export but you can skip this code segment and just use normal export.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Alberto answered 1 year ago

Hi Abu,

Thank you!

 

How can I make that the csv export only takes the selected columns from the attachment below?

https://imgur.com/a/XayUhV0

 

Kind regards,

Alberto.

Abu Ghufran answered 1 year ago

If `hidedlg` set to true this column will not appear in the modal dialog (colchooser / showhidecolumn) where users can choose which columns to show or hide.

$col["hidedlg"] = true;

Alberto answered 1 year ago

Hi Abu,

 

I’ve just sent you a mail about this with some screen shots attached for a better detailed description.

 

Kind regards,

Alberto.

Jess answered 1 year ago

Hi,

Is there any solution for this yet – selection of columns on grid then exporting those columns only yo CSV, currently all columns exported regardless of column selection?

Your Answer

12 + 11 =

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?