Hello All,
In Grid View by default my records are sorted on last name . But I am not finding a way to show the little ascending symbol next to my header by default . If I click on the header it starts showing up .Could any one tell me showing it by default the icon ? Below are the pictures and code . Thanks for your help - Yii Fan
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => $people,
'id' => "peopleList",
'template' => "{items}{pager}",
'columns' => array(
array(
'name' => 'last_name',
'type' => 'raw',
'header' => 'Last Name',
'htmlOptions' => array('width' => '180'),
),