Yii provides sorting functionality for listing. How can I disable sorting so that my records will not get sorted when clicked on column header?
set 'enableSorting' => false
in your list/gridview definition.
$this->widget('zii.widgets.CListView', array(
......
'enableSorting' => false,
......
)
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With