Displaying A Widget Inside Cjuidialog


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:




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

Thanks in advance

Take a look at the extension quickdlgs.