How can I delete the sentence "Total X resutl(s)" in CGridView

Hi,

does anybody know how can I delete the totalItemCount when I use CArrayDataProvider and CGridView?

I want to delete this sentence that appear above the grid that said: "Total X result(s)"

I did not find anything. :unsure:

Thank you!

You can use ‘template’ property or ‘summaryText’ property to change the appearance of the grid.

http://www.yiiframework.com/doc/api/1.1/CBaseListView#template-detail

http://www.yiiframework.com/doc/api/1.1/CBaseListView#summaryText-detail

CGridView has those properties derived from CBaseListView.

Thank you very much Softark for your answer. ;)

To fixed it I wrote:

‘summaryText’=>’’

This way you will still have an empty summary div above the listview. As softark stated you can change the template of the listview quite easily, just do


...

'template'=>"{sorter}\n{items}\n{pager}",

...

and the empty summary div will also be gone