logo

Flex: Bug In SummaryRow When Using XMLListCollections

Having just spent the best part of a day re-working a near-complete Flex app to use ArrayCollections instead of XMLListCollections as the data providers for an AdvancedDataGrid I have a simple piece of advice -- make your choice between the two wisely and make the choice before you start.

There's a bug in Flex which means you can't use SummaryRows with data grids that use an XMLListCollection as the data provider. Well, at least it seems like a bug to me. I've read a few people mention it online, but had no response to a question I posted on the topic or seen anything official on the matter.

Here's a demo to show what I mean. Use the buttons to load the same data but with different collection types:

Notice how the donation column only gets summarised for the ArrayCollection and not the XMLListCollection. To me this smells like a bug whereby Flex isn't casting the XML strings to a number properly when leaving it as XML, but it does when it converts the XML to Objects.

Retro-fitting an ArrayCollection can be a pain. If there's even the slimmest chance you you'll need to use SummaryRows then make sure to use an ArrayCollection from the off.

Comments

    • avatar
    • Rishi
    • Tue 2 Feb 2010 04:47 AM

    Hi Jake,

    I'm trying to use your search component but unfortunately filter is not working , I assume my grid is not bind with search component files ( FilterRenderer.mxml or Searchfield.mxml ).

    What am I missing ?

    Rishi

    • avatar
    • Niall
    • Tue 2 Feb 2010 10:57 AM

    Hi Jake, this related to filter issue I was having?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Tue 2 Feb 2010

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

Elsewhere

Here are the external links posted on the same day.

More links are available in the archive »

More Content