Yii Framework Forum: Clistview Sort - Yii Framework Forum

Jump to content

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

Clistview Sort when sorted dont keep results Rate Topic: -----

#1 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 160
  • Joined: 16-January 12

Posted 17 November 2012 - 02:11 PM

Hello, need help on keep the results.

no more search parameters after sorting .

Any idea?

$this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$model->isearch(),
        'itemView'=>'_view',
    'id'=>'casas',
    'sortableAttributes'=>array('cod_casa','tipo','pessoas','destino'),
    
));

0

#2 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 160
  • Joined: 16-January 12

Posted 17 November 2012 - 03:39 PM

View PostLed, on 17 November 2012 - 02:11 PM, said:

Hello, need help on keep the results.

no more search parameters after sorting .

Any idea?

$this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$model->isearch(),
        'itemView'=>'_view',
    'id'=>'casas',
    'sortableAttributes'=>array('cod_casa','tipo','pessoas','destino'),
    
));



dummy question?

seems to be GET instead of POST.
0

#3 User is offline   KonApaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 522
  • Joined: 21-February 11
  • Location:Greece

Posted 17 November 2012 - 04:10 PM

what do you mean 'no more search parameters after sorting' ?
what exactly you want to achieve?

Also I think to set
'enableSorting'=>'true',
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