I have a non-standard layout and therefore I need to render the pager of my CListView widget in a specific place. Using the ‘template’ option does not produce the desired output.
The pager needs to be above the items but in a div that will contain other (dynamic) items.
I have looked at the docs and found that there is a renderPager method:
OK I managed to fix the AJAX problem. The CListView widget will only detect clicks on pager links that are within the container specified by the ‘id’ property of the widget. Since the pager is being output outside the container, it does not detect these clicks. The way to make it work is to specify the ‘updateSelector’ property:
'updateSelector'=>'.pager-container a',
You will probably also need to specify the ‘ajaxUpdate’ property:
'ajaxUpdate'=>'listview-container',
So now the only problem I have is outputting the pager above the items. Again, the ‘template’ option will NOT work for me in this situation. Can anyone help with this?