Editing the summaryText in a Yii CGridView
Last updated:remove summaryText altogether
Sometimes you don't need or want that summary text that shows up at the top of a CGridView
saying things like Displaying 1-100 of 450 result(s). . Maybe in that case you would actually want it, but not in cases like Displaying 1-3 of 3 result(s).. It sometimes gets annoying and takes up unnecessary space.
$this->widget('zii.widgets.grid.CGridView',array(
'dataProvider'=>$your_dp,
'summaryText' => '',
just set summaryText
to ''
.
add another paginator at the top of the grid
set the template
attribute on you CGridView:
'template' => "{summary}\n{pager}\n{items}\n{pager}",