Yii Framework Forum: Problem with ExportMenu::widget - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem with ExportMenu::widget Rate Topic: -----

#1 User is offline   tabai 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 29-June 11

Posted 27 December 2016 - 02:25 PM

Hi!

I have in a model a sqlDataProvider that get some rows from database.

I execute this code with some params, i get a grid with some results, but if i export i get other rows.

I can't find the problem if the sqlDataProvider is the same why i get differents results.

$informeGeneralExportar = Informes::informegeneral($model->fechai,$model->fechaf,$model->idHotel);
$informeGeneralExportar->pagination = false;

$gridColumns = [
	'id',	
];
echo ExportMenu::widget([
	'dataProvider' => $informeGeneralExportar,
	'columns' => $gridColumns,
]);

echo \kartik\grid\GridView::widget([
    'dataProvider' => $informeGeneralExportar,    
    'columns' => $gridColumns
]);



Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users