Data Picker

Hello @riza_hurhadi your post is great. Very Useful.

Everything works amazing!

Thank you for your help.

Regards,

Diego Toala

Thanks [color=#1C2837][size=2]@riza_hurhadi It’s useful!!![/size][/color]

I’m glad it help you guys.

you can use selectablerow

http://www.yiiframework.com/doc/api/1.1/CGridView#selectableRows-detail




// in my case i added to cgridview

....

'selectableRows'=>2,

'columns'=>array(

	array(

	 'id'=>'selectedItems',

	 'name'=>'id',

  	 'class'=>'CCheckBoxColumn',

	),

....

// then use javascript to retrieve checked

// 

sList = '';

$('.select-on-check').each(function(){

  if(this.checked) {

	sList += (sList=='' ? $(this).val() : ',' + $(this).val());

   }

});



the javascript and selectablerow code i got from googling.