Yii Framework Forum: Get Current Data In Cgridview - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Get Current Data In Cgridview Rate Topic: -----

#1 User is offline   awebdeveloper 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 29-September 12

Posted 18 November 2012 - 12:29 PM

I have the following helper

array(
	'name' => 'stype',
	'value'=> 'isset($data->Product->type) ? $data->Product->type : " "',
	'filter'=> ZHtml::enumDropDownList( Product::model(),'type', 
			array('empty'=>'All','name'=>'ProductDetail[stype]'))
),


public static function enumDropDownList($model, $attribute, $htmlOptions=array())
{
   return CHtml::activeDropDownList( $model, $attribute,ZHtml::enumItem($model,  $attribute), $htmlOptions);
}



How do i specify/make the current selected item as the filter dropdown's value
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users