datagrid
datagrid copied to clipboard
Question about export
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