I implemented a modal with its content rendered using renderPartial(). However, when I try to call a script inside the modal window (e.g $.blockUI), it doesn't work at all. No errors though.
This is how I rendered the content:
echo CJSON::encode($this->renderPartial($view, array(
'dataProvider' => $dataProvider,
'model' => $model,
'selectedIds' => $selected,
), TRUE, TRUE));