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
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'=>'staffDialog',
'options'=>array(
'title'=>'staffdetails',
'autoOpen'=>true,
'modal'=>'true',
'width'=>'auto',
'height'=>'auto',
'open' => 'js:function(event, ui) {
}',
'close' => 'js:function(event, ui) {
$(".ui-dialog:has(#staffDialog)").empty().remove();
}',
),
));
?>
<?php
$this->widget(‘zii.widgets.CListView’, array(
'dataProvider'=>$moduleDataProvider,
'itemView'=>'/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