Using this wiki I have a dynamic dropdownlist working just fine. Instead of the related data populating another dropdownlist I just want all the related values to display at once on the screen in some sort of formatted list.
I changed the update in the ajax action to 'update'=>'#cities', and added to my view...
<div id="cities">
<?php echo $model->relatedCities; ?>
</div
and to my model
public function getRelatedCities()
{
$out=CHtml::listData($this->cities,'CityId','Name');
return implode('<br />', $out);
}
When I make my selection in my dropdownlist nothing is updated in <div id="cities"> and the ajax call in firebug looks fine.
So how can I display the dynamic related content from the dropdownlist all at once?
$model->relatedCitiesbe$model->RelatedCities?