The solution is to save the filtered data in a session variable. This filtered data are in the search function inside the model.
Download Filtered Data using CGridView Yii
题
I'm using CGridView Widget to show my data. I have a button to download, but I don't know how to do it just with the filtered data. Any help or guidance will be appreciated.
解决方案
其他提示
I don't what what you mean by download, may be you are referring to export the data to a file like .xls for example. If this is the case may be you should try using a grid export extension like EExcelView.
I'm the author of the extension so if you have any troubles please let me know, or write an issue in github.
不隶属于 StackOverflow