madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Excel export with hyperlinks not supported #905

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Export table with hyperlink data in excel sheet
2. Hyperlink disappears and just data exists

What is the expected output? What do you see instead?

For example
<a href='abcd.com'>My text</a>

On grid I have "My text" with "abcd.com" hyperlink.

When I do excel export, it has "My text" but hyperlink is missing

Code:

$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/grid.ini', 
'production');
$grid = Bvb_GridErrMan::factory('table', $config);

$grid->updateColumn('hyperlinks', array('decorator' => '<a 
href="http://abcd.com">My text</a>'));

$grid->setTableGridColumns(array('hyperlinks')); 
$myGrid = $grid->deploy();
$this->view->grid = $myGrid;

Please let me know how I can export data with hyperlinks

Original issue reported on code.google.com by yamunaga...@gmail.com on 30 Jul 2015 at 9:14