In a model have 4 fields. id, name, address, status. In the list view showing a radio button list for displaying status. In the Listview i want to update the list based on the radio button selection. How it possible in Yii?
In a model have 4 fields. id, name, address, status. In the list view showing a radio button list for displaying status. In the Listview i want to update the list based on the radio button selection. How it possible in Yii?
Try this to submit form
<?php
$types=array("1"=>"Type1","2"=>"Type2");
echo $form->radioButtonList(
$model,
'type',
$types,
array(
'template'=>'{input}{label}',
'separator'=>'',
'labelOptions'=>array('style'=>'padding-left:13px'),
'style'=>'float:left;',
'onclick'=>CHtml::ajax(array(
'success'=>"$('.search-form form').submit()",
)))
);
?>
How the List view will update in this case?