datagrid
datagrid copied to clipboard
Custom export takes too long
Hi @f3l1x, @paveljanda,
Is possible to change method getDataSource() in file Contributte\Datagrid\DataSource\NextrasDataSource.php here visibility from protected to public?
In my case I am doing custom export, because included CSV export takes too long in case large model dependences, so I prepared custom SQL query and now i need to pass argument $userIds, which I get from filtered items from datagrid. For now there is no accessable method to get collection, here is only method getData(), but it returns Nextras Model fetchAll(), that i later iterating for get array of filtered ids. Which also takes too long. Best way for me is public visibility method getDataSource(), where I can call fetchPairs(null, 'id').
Thanx