How To Implement Cgridview In Other Controller.


I have a controller and I call cgridview from other controller in the part of page. I have a problem. cgridview is show in a page but it can’t sort by ajax.

when I sortting the page change new url. and ajax is not within url.

for cgridview I try like this example from this link :

someone help me?

Thank you very much.

Please check out the CGridView.ajaxUrl property. It defaults to the current controller, so if you’re using a grid from another controller you need to explicitly set it.