[flexcoders] Grouping on ADG using hierarchicalData

2008-08-18 Thread nikscares4u
Hi All,
 
I was trying to perform grouping on Advanced datagrid. I did grouping
on ADG using arraycollection as dataprovider and then setting it to
grouping collection. That works fine but I don't know how the same can
be done using HierarchicalData as dataprovider? Any Idea ?
 
Many thanks in advance.
 
Regards
Nikunj



[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid

2008-02-19 Thread nikscares4u
I have already done that but it still gives the same error.
Here the dataProvider is an XMLListCollection.

Here is the code

mygroup.source = XMLListCollection(datagrid.dataProvider);
var group:Grouping = new Grouping();
var gf:GroupingField = new GroupingField("PRICE");
mygroup.grouping = group;
mygroup.refresh();



Regards,
Nikunj


--- In flexcoders@yahoogroups.com, "sreeni_r" <[EMAIL PROTECTED]> wrote:
>
> If you set GroupingCollection.source to the XMLListCollection and setup 
> the Grouping and GroupingField properties and call 
> GroupingCollection.refresh it should just work.
> 
> --- In flexcoders@yahoogroups.com, "nikscares4u"  
> wrote:
> >
> > Hi,
> > 
> > I am using an XMLListCollection as a dataprovider in AdvancedDataGrid.
> > Is there any way to apply grouping on the AdvancedDataGrid using 
> > XMLListCollection. When I try to apply it on the XMLListCollection,  
> > it gives an error :
> > 
> > "Cannot convert XMLListCollection to ArrayCollection" 
> > 
> > Any Idea ?
> > 
> > Thanks in advance.
> > Nikunj
> >
>