Here the amount will be displayed dynamically from the amount column in a certain table as a check-box-list. i want to load the same data in text boxes
were the customer can edit if he wants.
If i write this just a single textbox is getting displayed.
First of all, CHtml::activeTextField() takes only 3 parameters ($model, $attribute and $htmlOptions). Unlike CHtml::activeCheckBoxList, it doesn’t take a data array parameter. Look it up in the reference. http://www.yiiframework.com/doc/api/1.1/CHtml#activeTextField-detail
I guess you want something like a “comboBox” in Windows desktop app, or, in other word, an “editable drop down list”. Am I right? But it’s not supported either in HTML or in Yii framework AFAIK.
So you have to consider other approaches.
What I can think of are …
textField + doropDownList + javaScript to populate the selected value of dropDownList to textField
making use of CJuiAutocomplete
search some library to implement an "editable dropDownList"
[EDIT]
Ah, you want 2 or more textFields to be displayed. Right?
Then my post is kind of out of focus. Sorry!!
But CHtml::activeTextField is just for a single text box.