I have developed a new extension for the multi selection widget with the help of Multiselectable jQuery plugin. I hope it’ll be useful for everyone. If there is any issue with this new widget please inform me.
Put this extension in extension folder.
Then add following code into your views.(Replace COLMID,COLMDESC with your required details)
<div class="multi">
<?php
$data= CHtml::listData($model::model()->findAll(),'COLMID', 'COLMDESC');
$this->widget('ext.IshMultiSelect.IshMultiSelect', array(
'model' => $model,
'listAttribute' => 'COLMDESC',
'data' => $data,
'listHtmlOptions'=> array(
'style'=>'display:block',
'multiple'=>'multiple',
),
));
?>
</div>
5517
IshMultiSelect.php
epulgaron
(Jokercrazy05544)
June 25, 2014, 2:36pm
2
I tested your extension, but I get the following error:"Undefined index: multiple", any idea?
miprabuddini:
I have developed a new extension for the multi selection widget with the help of Multiselectable jQuery plugin. I hope it’ll be useful for everyone. If there is any issue with this new widget please inform me.
Put this extension in extension folder.
Then add following code into your views.(Replace COLMID,COLMDESC with your required details)
<div class="multi">
<?php
$data= CHtml::listData($model::model()->findAll(),'COLMID', 'COLMDESC');
$this->widget('ext.IshMultiSelect.IshMultiSelect', array(
'model' => $model,
'listAttribute' => 'COLMDESC',
'data' => $data,
'listHtmlOptions'=> array(
'style'=>'display:block',
'multiple'=>'multiple',
),
));
?>
</div>
5517
IshMultiSelect.php