If you do a renderPartial on a view containing an ajax control then the controls' event is not bound in JQuery. For example you do an ajax update on a page and the view you are partially rendering has a CHtml::ajaxLink. The methods for binding the ajaxLinks' click event is not sent back to the client.
public function actionFolder() {
$reference = $_GET['reference'];
$this->renderPartial("bview",array("dirList"=>$this->getDirList($reference)));
}
public function actionIndex() {
$this->render("viewa");
}
I just checked in a fix. Please change your renderPartial call and add a parameter value "true" as the fourth parameter. This will instruct Yii to append the generated javascripts.
public function actionFolder() {
$reference = $_GET['reference'];
$this->renderPartial("bview",array("dirList"=>$this->getDirList($reference)),false, true);
}
And also tried
public function actionFolder() {
$reference = $_GET['reference'];
$this->renderPartial("bview",array("dirList"=>$this->getDirList($reference)),true);
}
Hmm…I didn’t realize this. This is also related with ticket #38. Could you please report your problem in that ticket? No need for a separate ticket. We need some nice way to solve this issue.