This content has been marked as final. Show 4 replies
"azilaga" <firstname.lastname@example.org> wrote in message
> Hi folks, I googled around for this but no luck. I've a datagrid
> with via httpService. The problem I'm having is that when there is only
> item returned via the httpService, the datagrid doesn't display anything.
> However, when as soon as I add a second item, everything displays
> Has anyone else experienced this issue? Attached is my code.
Try setting the result format on the HTTPService to "e4x"
Thanks. Adding e4x to the resultFormat didn't exactly work but I did end up using e4x as the resultFormat in the end. Thanks for pointing me in the right direction. In the end, I scrapped the result handler and fed the datagrid the httpService results directly as such:
<mx:DataGrid id="dg_comments" height="100%" width="100%" rowCount="5" y="26" borderStyle="none" borderColor="#FFFFFF"
That is ok, but if you ever need to preprocess your data, or invoke any other actions when the data arrives, or debug the result, you will be sorry you are not using a result handler.
You gave up to easily, result handlers are the way to go.
Yeah, I know what you mean. That's been bugging me. I was planning on building a fault handler for the httpservice tomorrow.