May be we can , try to save the changes (or add create a xml structure) .
if there are multiple things to save may be override things we want save
(using item editors)

for an example

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
creationComplete="{init()}"   layout="absolute" xmlns:local="*">
<mx:Script>
    <![CDATA[
        import mx.utils.ObjectUtil;

        private function checknow():void
        {
            trace(ObjectUtil.toString(ADG.dataProvider));
        }

    ]]>
</mx:Script>
<mx:XML id="list">
<rows>
<row>
  <name>Date1</name>
  <actual>1/8/2009</actual>
  <infor>
       <row>
       <name>planned1</name>
       <actual>1/4/2005</actual>
       </row>
       <row>
       <name>planned2</name>
       <actual>2/5/2008</actual>
       </row>
  </infor>
</row>
<row>
  <name>Date2</name>
  <actual>3/6/2009</actual>
  <infor>
       <row>
       <name>planned1</name>
       <actual>4/5/2008</actual>
       </row>
       <row>
       <name>planned1</name>
       <actual>5/8/2002</actual>
       </row>
       <row>
       <name>planned3</name>
       <actual>4/2/2008</actual>
       </row>
  </infor>
</row>
</rows>
</mx:XML>

<mx:AdvancedDataGrid id="ADG" width="50%" height="50%" editable="true"
dragEnabled="true" >
   <mx:dataProvider>
       <mx:HierarchicalData source="{list.row}" childrenField="infor" >
       </mx:HierarchicalData>
   </mx:dataProvider>
 <mx:columns>
  <mx:AdvancedDataGridColumn dataField="name" />
  <mx:AdvancedDataGridColumn dataField="actual" />
 </mx:columns>
</mx:AdvancedDataGrid>

<mx:Button label="save" click="checknow()" x="10" y="252"/>



</mx:Application>


and we can try to give it a drag and drop feature ,so that we can check out
the grouping order is preserved or not.

and when it comes to formatting , what sort of formatting are you talking
about ,
is the component renderers any rich rext (html text) ?
since for that as well we may be able to store it as a array collection
where the each object has a variable for richtext.


hope this helps

cheers

Dinukx


On Wed, Nov 11, 2009 at 3:54 PM, mman <[email protected]> wrote:

>
> Hi all,
> I have an ADG and I want to save its groupedColumn and their format
> into an XML files.
> Is there any previous work in this direction? I have read sth about
> how to do the inverse for structural data.
>
> In fact I want to save more than that, e.g. the title ( a text and its
> formattings ), a drop-down list with its options and the selected one,
> and more.. But, for the momnet the groupedColumn and their order and
> formattings are very urgent.
>
> I would be so glad to provide more info if requested!
>
> Thanks for any help.
>
> --~--~---------~--~----~------------~-------~--~----~
> 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]<flex_india%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

--

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=.


Reply via email to