Tuesday, February 10, 2009

Repeaters

Repeater are the perfect component to use, when you are not sure of the amount of data you are dealing with, for example number of phone numbers provided by the user

in this case you can use Repeaters to iterate thru the customer array and create the component for each
you can use Repeaters to iterate thru the dataprovider and create a seperate component for product






]]>


Now consider the following, you can a module which requires the user to this contact details, and by default only 1 field is provided, to add more you have provided a button and teh user can click the button to add another field. the click event can have the follwoing code "phoneArray.addItem('Phone Number');", this surely works (provided phoneArray is [Bindable] the only problem is if that user has put in some data in the avaiable fields, that would be lost !

No comments:

Post a Comment