Hi Friends,
I have ArrayCollection object which is passed to a Repeater. This
arrayCollection contains following type of values:
{key:0, answerSkin:""}
and this is the Structure of the Eelements which Repeater creates:
<mx:Repeater id="stdAnswerRepeater" dataProvider="{answersList}">
<mx:HBox horizontalScrollPolicy="off" >
<mx:CheckBox width="50"
data="{stdAnswerRepeater.currentIndex}" click="setSequence(event)"/>
<mx:TextInput id="answerSkin"
data="{stdAnswerRepeater.currentItem.key}" width="162"
editable="false" text="{stdAnswerRepeater.currentItem.answerSkin}"/>
<mx:TextInput id="sequence" width="132" data
="{stdAnswerRepeater.currentIndex}" editable="false"
text="{getStandardAnswerName()}" />
<mx:TextInput width="132" text=""/>
</mx:HBox>
</mx:Repeater>
Now When user click on a button say "Add More Rows". A method is
called say
public function addRows():void{
var noOfAnswerSkins:int = parseInt(noOfAnswerSkin.text);
var i:int = 0;
if(answers.length == 0){
isEditableFlag = true;
}
for(i =0; i<noOfAnswerSkins;i++){
answersList.addItem({key:0, answerSkin:""});
}
}
Now i have added few more columns to the ArrayCollection, in turn
repeater creates more rows. Now i want these new rows to be editable
and older rows to be non-editable. Can somebody tell me how to achieve
this?
I want the two text input (answerSkin & sequence) to be editable for
the rows added later.
Thanks & Regards,
Ashish Mishra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---