CGridView rendering issues

Hi,

I am using a CGridView with a CArrayDataProvider and I am trying to get the pagination to work.

Now this is very strange, the first page of the CGridView works as it should do.

However when I click page 2 …

It renders my main menu which is a CMenu.

If I comment out the main menu code, it renders my sub menu which is also a CMenu.

Any ideas why it is doing this?

Both of the menus are kept in a different folder to the one being displayed. They are rendered in the main layout file by calling the render partial method.

I am just guessing, but have you tried defining unique ids for every widget? Maybe some duplicate widget ids are the reason for this