Hi,

You are getting repetitive Project names because you have grouped the
columns based on Project Name field. In an ideal scenario, you should group
is based on some other field. I dont know whether that would be applicable
in your case, but its like this.. If you have a few India projects, and some
US projects, you should group it on Country. Then it will show country as
Folder node and inside it, there will be the projects for those countries.

In case you just want that everything should be as you have made, then keep
the dataField as blank for the first DataGridColumn and see if you are
getting the desired result.

Regards,
Venkat
www.venkatv.com


On Wed, Dec 3, 2008 at 6:46 PM, ans dev <[EMAIL PROTECTED]> wrote:

> Hello All,
> I have data columns in Web Service like
>
> PROJECT
> TASKLIST
> ADDED DATE
> ADDED BY
>
> And I want to show List of Projects.
> When I click on Project It should Show me List of Tasks, Added Date and
> Added By, But Its showing me Project name also.
>
> Attached is an Image to understand better.
>
>
> Some of my code
> #-----------------------------------
> private function applyGrouping():void
>         {
>           //Make a grouping collection
>           var mygroup:GroupingCollection=new GroupingCollection();
>   //Set the source to the array collection (this case dataProvider)
>       mygroup.source = webadg.dataProvider;
>       //Create a new grouping
>   var group:Grouping = new Grouping();
>            //Group on Project Name
>   var gf:GroupingField = new GroupingField("PROJECTNAME");
>
>   //Set the fields to the grouping
>   group.fields = [gf];
>
>   //Finally, Set the group to the grouping property of groupedCollection
>   mygroup.grouping = group;
>   //Refresh the group
>   mygroup.refresh();
>   //Set the dataProvider to the grouping collection
>   webadg.dataProvider = mygroup
>   //Call validateNow() to redraw the dg.
>   webadg.validateNow()
>         }
>
>
>                 <mx:AdvancedDataGrid id="webadg" width="100%"
> height="100%">
>      <mx:columns>
>                           <mx:AdvancedDataGridColumn
> dataField="PROJECTNAME" headerText="PROJECT NAME"/>
>                           <mx:AdvancedDataGridColumn dataField="SUBJECT"
> headerText="Task Title"/>
>                          <mx:AdvancedDataGridColumn dataField="STATUS"
> headerText="STATUS"/>
>                          <mx:AdvancedDataGridColumn dataField="CREATEDBY"
> headerText="CREATED BY"/>
>                      </mx:columns>
>    </mx:AdvancedDataGrid>
>
>
> --
> Thanking You,
> Anurag J. Rathod.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to