06-10-2012 03:02 AM
i'm new in BB
i want to use ListField UI component ..,
I'm using SDK 5.0 .,
in this component i need to add & remove items dyanamically .,
So please tell me how i can do this ...?
Solved! Go to Solution.
06-10-2012 03:38 AM
Depending on how you use the Field, there are delete and insert options available. You can also set the size and then invalidate() the entire ListField. These options are available via appropriately named method calls in the ListField. Have a look at he API.
Alternatively you can create a new ListField with your updates and replace the existing ListField with your new one.
Any these options should work, you need to choose the one that is easiest for you. I must admit I typically use the replace option. .
Anyway, review the documentation, give them a try and let us know how you get on.