Settings Is Undefined


I am having problems with more than one datagrid on a page.

When I have one datagrid on the page, it works perfectly.

But when I have two I get the "settings is undefined" JS error.

Each grid has its own unique ID.

It appears that the "init" function inside the yiigridview.js is not being called so it is not setting the "settings" variable.

Can anyone help?


Try this: