I need to export gridview to pdf and excel So I searched and I seen the best is
But my problem is no documentation or how to use it with full details all i seen it , just this code
$this->widget('EExcelView', array( 'dataProvider'=> $dataprovider, 'title'=>'Title', 'autoWidth'=>false, ..... other options ));
But I don't need from user to when go to view page download directly excel file , I need to use button above grid-view and when user click
on it then download the file .
How To do that with pdf and excle ?
Any resource or code will be so help
Thanks in advance