Displaying A Widget Inside Cjuidialog

Hi.

I have a widget similar to CGridView, and i want to display it dynamically when the user clicks a button.

I can render the widget and hide it until the button is clicked, but it isn’t really a solution, cause it would slow the page loading time.

Inside a view i can simply use:

<?php

$this->widget(‘MyBeautifulGridView’);

?>

How can i render a widget with ajax, possibly inside CJuiDialog ?

Thanks in advance

Take a look at the extension quickdlgs.