New Multi Select Extension


(Miprabuddini) #1

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">

&lt;?php


	&#036;data= CHtml::listData(&#036;model::model()-&gt;findAll(),'COLMID', 'COLMDESC');


	&#036;this-&gt;widget('ext.IshMultiSelect.IshMultiSelect', array(


		'model' =&gt; &#036;model,


		'listAttribute' =&gt; 'COLMDESC',


		'data' =&gt; &#036;data,


		'listHtmlOptions'=&gt; array(


			'style'=&gt;'display:block',


			'multiple'=&gt;'multiple',





		),


	));


?&gt;


&lt;/div&gt;

5517

IshMultiSelect.php


CGridview custom display using Public or Private as values
(Jokercrazy05544) #2

I tested your extension, but I get the following error:"Undefined index: multiple", any idea?