Display Clist Widget On Cjuidialog Box

hey can anyone give me the idea about how to display data in clistview using cjuidialog box.if you can provide sample code it is heighly appreciate.

thanx in advance

::) ::) :)

Hi,

I hope this code will solve your problem…

<?php

$this->beginWidget(‘zii.widgets.jui.CJuiDialog’,array(

'id'=&gt;'staffDialog',


'options'=&gt;array(


	'title'=&gt;'staffdetails',


	'autoOpen'=&gt;true,


	'modal'=&gt;'true',


	'width'=&gt;'auto',


	'height'=&gt;'auto',


	'open' =&gt; 'js:function(event, ui) {


	}',


	'close' =&gt; 'js:function(event, ui) {


		&#036;(&quot;.ui-dialog:has(#staffDialog)&quot;).empty().remove();


	}',				


),

));

?>

<?php

$this->widget(‘zii.widgets.CListView’, array(

'dataProvider'=&gt;&#036;moduleDataProvider,


'itemView'=&gt;'/module/_view',

));

?>

<?php $this->endWidget(‘zii.widgets.jui.CJuiDialog’);?>

Thanks

chandran nepolean

hey thanx lot.can you pls tell me how to code controller action.pls :) :)

Hi,

View code is common for displaying. But controller code is depends on your logic. How can i write your logic without any knowledge.

Thanks

chandran nepolean