datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

Question about export

Open xpackal5 opened this issue 7 years ago • 1 comments
trafficstars

Hi I have question about export. I am using datagrid encapsulated in Control and i need set datasource while Control is rendered.

example in Control class :

public function render(){
....
$this["datagrid"]->setDataSource($this->datasource);
};

Everythink is ok, but if I try use CSVExport datagrid throws Ublaboo\DataGrid\Exception\DataGridException You have to set a data source first

I thought datasource needed while datagrid rendered.

Thank you. Milan

xpackal5 avatar Jun 15 '18 11:06 xpackal5