Re: [flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-28 Thread Tom Sammons
Hi, Regarding the _items property of the RO result, I think that would depend on what the results from your remote object look like. The property name does look like an internal Flex varaible, though; did you originally get that from a code sample? I use result._items when I have to

Re: [flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-27 Thread Tom Sammons
Thanks for the quick reply Doug, that is great and all makes sense and I can see what's going on. I can make it work with a little manipulation of the inner RO calls by using for loops. And had I thought about it more, you are right that event.dragSource et al would have all the information

[flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-27 Thread Doug Lowder
Hi Tom, If your repeated data is dynamic, you can reset your repeater by just updating the repeaterData variable. To see what I mean, change the repeaterData declaration to repeaterData: Array = [] and add the following button to the control bar in the code I posted. mx:Button label=Add a

Re: [flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-27 Thread Tom Sammons
I was looking all over the place for an array append type of method, but did you think I'd put in concatenate? Noo. And I was staring right at the Flex AS array doc. Doh. Well, I wouldn't have thought of or known to just add [{}] to it anyway... I don't think I'll have any problem with

[flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-27 Thread Doug Lowder
Hi Tom, Regarding the _items property of the RO result, I think that would depend on what the results from your remote object look like. The property name does look like an internal Flex varaible, though; did you originally get that from a code sample? I typically just set my data variable

[flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-26 Thread Doug Lowder
Hi Tom, Hopefully the sample code below will be enough to get you started. Once the repeated grids have had their dataproviders bound to an array, all you need to do is reassign another array to update the grid just as the "Update grids" button in the sample does. The sample accomplishes this