Yii Framework Forum: [EXTENSION] Chained dropdown/select lists - Yii Framework Forum

Jump to content

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

[EXTENSION] Chained dropdown/select lists Rate Topic: -----

#1 User is offline   Paul Apostol 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 61
  • Joined: 25-March 09

Posted 22 May 2009 - 03:13 PM

Here it is:
http://www.yiiframew...ycascadeselect/
0

#2 User is offline   Made 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 01-April 09

Posted 04 January 2010 - 09:20 AM

	public function makeDropDown($id, $selected = '', $data, $htmlOptions = array(), $action, $chained)
    {
    	$controller=$this->controller;
    	Yii::app()->clientScript->registerScript('jqcascadeselect'.$id,
    		"jQuery('#".CHtml::getIdByName($id)."').cascade('#".$chained."',{".	
				"ajax: {url: 'index.php?r=".$action."'},".	
				"template: commonTemplate});",
            CClientScript::POS_READY);
		
      	return CHtml::dropDownList($id, $selected, $data, $htmlOptions);
    }

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