You'd probably want to use a labelFunction on each column where you
want to do something to what the user sees. I think one of the links I
sent you has info on creating labelFunctions. Here's an example,

// As described here: http://thanksmister.com/?p=8
// Pulls data from XML nodes that are optional. 
// Assumes your XML has an element called "image" that
// has an attribute called "id".
public function getImageID(item:Object,
column:AdvancedDataGridColumn):String {
  if (item.image == undefined) {
    return null;
  }
  else {
    return [EMAIL PROTECTED];
  }
}

In your ADG, you'd call this function like this:

<mx:AdvancedDataGridColumn labelFunction="getImageID" 
  headerText="Image ID" />

-Alex

--- In [email protected], "todd.bruner" <[EMAIL PROTECTED]> wrote:
>
> Tracy:
> 
> Thanks for taking the time to reply.
> I was wishing to display something like:
> 
> period
>      2008-12-5 00:00:00    |              |
>                            |      CK      | 101
>                            |      US      | 33
>                            |      UK      | 10
>      2008-12-5 01:00:00    |              |
>                            |      PB      | 5
>                            |      CA      | 14
>                            |      IT      | 200
> ...etc...
> 
> I will explore your other suggestions below...Thanks!
> 
> Todd
> 
> --- In [email protected], "Tracy Spratt" <tspratt@> wrote:
> >
> > What are you wanting in your display?
> > 
> >  
> > 
> > A straight table with three columns: "period", "ccode", and "detects"?
> > 
> >  
> > 
> > If so, then that is not hierarchical and you are making this more
> > complicated than it is.  Why did you choose ADG instead of plain old
> > DataGrid?
> > 
> >  
> > 
> > If your issue is accessing data nested in subnodes, then use a
> > labelFunction.
> > 
> >  
> > 
> > Make the dataProvider = xmlData.rollup (an XMLList. If you plan to
> > undate it programatically, then wrap it in an XMLListCollection).  The
> > labelFunction can reach down into any node of rollup you want
> > 
> >  
> > 
> > Tracy
> >
>


Reply via email to