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
-~----------~----~----~----~------~----~------~--~---

<<inline: proj-task.JPG>>

Reply via email to