Yii CGridView rendered inside CJuiDialog won't be filtered or ordered
问题 I'm rendering a CGridView inside a CJuiDialog, and that's working fine. My problem is, every time i click a column header to sort records, the page changes (the url is the url of the view rendered with renderPartial through ajax) and the request is not ajax ( Yii::app()->request->isAjaxRequest inside the controller is false). Also, if i filter any field, nothing happens. How can I let the user sort or filter the CGridView? OR: Is there another way to let the user choose a Foreign Key field