Hi all,
This is my problem:
I have a Gridview with a custom button that fires an ajax event. As a result a CJuiDialog displays in the same page and its content is the json encoded data returned by the action controller of that event.
So far so good, but here comes the problem. The content of the dialog is another gridView. It shows ok, but with no ajax interaction at all.
It seems to me (and to firebug) that the json encoded view rendered inside the dialog comes with all the html but with no jQuery.
To summarize:
1.- Gridview button fires ajax request
2.- A controller process that request and returns another gridview json encoded. Something like this:
if (Yii::app()->request->isAjaxRequest)
{
echo CJSON::encode(array(
'status'=>'success',
'div'=>$this->renderPartial('manage', array('model'=>$model, 'component_id'=>$component_id, 'profile_id'=>$profile_id), true)));
Yii::app()->end();
}
3.- This ‘div’ is set as the content of a CJuiDialog in the same page. It shows OK.
4.- But I cannot search, filter, paginate or launch ajax events from de grid inside de dialog. I think that no jQuery is loaded in the page to deal with this second grid events.
I´ve tried setting the fourth parameter of renderPartial to true to force script generation, but it returns "null" when I do that.
Anyone has tried something like this? Have you faced the same issues?
Thanks in advance.