Question

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.

Was it helpful?

Solution

The solution is to save the filtered data in a session variable. This filtered data are in the search function inside the model.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top