finally it was available in prado as a property of the object. I haven't found it in yii.
which is your solution?
Page 1 of 1
prompttext in dropdownlist
#3
Posted 16 October 2008 - 08:08 AM
This is how you do it:
But there's a slight bug with it. I have created a ticket here.
<div class="simple">
<?php echo CHtml::activeLabel($artist,'artistType'); ?>
<?php echo CHtml::activeDropDownList($artist,'artistType',array("item1","item2"),array("prompt"=>"pants")) ?>
</div>
But there's a slight bug with it. I have created a ticket here.
Share this topic:
Page 1 of 1

Help
This topic is locked











