psa
September 25, 2012, 2:03pm
#1
Hello,
I have an xml that I need to export to Excel, but I need the Excel file must not have certain columns that do appear in the xml.
My xml is:
lumn width=‘125’ align=‘undefined’ type=‘ro’ hidden=‘false’ sort=‘str’ color=’’>
<![CDATA[ ]]>
<![CDATA[ ]]>
I need the excel file does not contain the first 5 columns.
Thanks,
You can use grid.setSerializableColumns to define which columns will be included in excel export.
Something like next:
grid.setSerializableColumns("true,true,false,true,true");
psa
October 24, 2012, 12:47pm
#3
I also need the opposite effect, ie in excel more columns appear in the list. For example: My table has 5 columns visible and 2 hidden, and export to excel need to appear 7 columns.
radyno
October 25, 2012, 8:06am
#4
Hi,
please, open file gridExcelGenerator.php and replace line:
$columnArr['hidden'] = ($column->attributes()->hidden == 'true') ? true : false;
with the follow:
$columnArr['hidden'] = false;
psa
October 29, 2012, 2:50pm
#5
Thanks, but, I use java,not PHP. Please, you can help me how do it?
radyno
October 30, 2012, 3:05pm
#6
Unfortunately there is no way to implement it for java (and php, my previous solution for php was wrong) in easy way.