Sign in to follow this  
Guest Basundhara Ghosal

Refresh for FusionWidget as ItemRenderer in AdvancedDataGrid

Recommended Posts

First, an apology for my poor English

 

 

 

I am creating an application that uses a fusionwidget as itemrenderer in an AdvancedDataGrid. But because components are reused in flex, the data is not refreshed to collapse and expand the branch. If I call the method FCRender () in the event "show" of the itemrenderer this becomes very slow.

 

 

 

 

 

Any suggestions to optimize this?

 

 

 

Here a sample code.

 

 

 

This is the itemRenderer:

 

[quote]

<?xml version="1.0" encoding="utf-8"?>

<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" xmlns:ns1="com.fusionwidgets.components.*" show="showWidget()">

<ns1:FusionWidgets id="widget" height="20"   width="250"   visible="false" />

<mx:Script>

	<![CDATA[			

		import mx.states.RemoveChild;

		import mx.events.FlexEvent;

		import com.fusionwidgets.components.FusionWidgets;



		override public function set data(value:Object):void {      

			super.data = value;

               //only for leafs

               if(value != null&&!value.hasOwnProperty("GroupLabel"))  {                	



                 widget.height=(data.xmlData)?data.chartHeight:20;

                 widget.FCChartType=data.chartType;

                 widget.FCDataXML=data.xmlData;



                 widget.visible=true;                  

               }   

               else

               {                	

               	widget.visible=false;                	

               }      



           }           

           private function showWidget():void{

           	trace("inShowEvent");

           	widget.FCRender();

           }



	]]>

</mx:Script>	

</mx:HBox>

[/quote]

 

 

 

This is the code in the Application:

 

[quote]

<mx:AdvancedDataGrid id="adg1" designViewDataType="flat" width="95%" height="95%" initialize="gc.refresh()"  disclosureClosedIcon="@Embed(source='assets/plus20.png')" disclosureOpenIcon="@Embed(source='assets/minus20.png')" folderClosedIcon="{null}" folderOpenIcon="{null}" defaultLeafIcon="@Embed(source='assets/arrowrightblue20.png')" variableRowHeight="true" styleName="MyDataGrid" >

<mx:dataProvider>

       <mx:GroupingCollection id="gc" source="{arrData}">

           <mx:grouping>

               <mx:Grouping>

               	<mx:GroupingField name="first"/>

                   <mx:GroupingField name="second"/>

                   <mx:GroupingField name="third"/>                       

               </mx:Grouping>

           </mx:grouping>

       </mx:GroupingCollection>

   </mx:dataProvider> 

<mx:columns>			

    <mx:AdvancedDataGridColumn dataField="grouping" headerText="First/Second/Third/Some" wordWrap="true" paddingLeft="5" paddingRight="5"/>			

	<mx:AdvancedDataGridColumn dataField="some" headerText="Some" width="160" textAlign="center" minWidth="160"/>

	<mx:AdvancedDataGridColumn headerText="Graphic"  width="260" itemRenderer="MyFusionWidgetsItemRenderer" />



</mx:columns>

</mx:AdvancedDataGrid>

[/quote]

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

Currently our development team is working on it and will get back to you as soon as possible.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We apologize for the inconvenience.

Ou development team has tested the issue in our lab and is not able to replicate the it.

Could you please send us the entire code that you are using for the same along "arrData" so that they might re-test the issue in our lab?

Awaiting your reply. :hehe:

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

FusionMaps for Flex is now out of Beta.

 

We are happy to release FusionMaps for Flex v1.0 - animated, interactive and dynamic maps for your Adobe Flex Solutions.

 

FusionMaps for Flex boasts of the following:

 

* Provides over 314 maps including all continents, countries, US states, and states/counties of a lot of other countries.

* Supports dynamic-resizing.

* API for Drill-down, mouse interactivity, export etc.

* Custom Markers, shapes, connector lines.

* Works with Flex Builder 2, Flex Builder 3 and Flash Builder 4 (Flex SDK 2/3/4).

* Simple copy-paste style installation.

* Lots of code samples and extensive documentation.

 

 

You may download the beta from www.fusioncharts.com/flex/download.

 

You may see the online demos at :

www.fusioncharts.com/flex/demos/us-election/index.html or

 

www.fusioncharts.com/flex/demos/us-employment-distribution/index.html.

 

You may see all the map using our interactive Map Explorer.

 

To read more on how to use FusionMaps for Flex, you may also visit the Online Documentation at www.fusioncharts.com/flex/docs/maps.

 

Your feedback is VERY important to us and we would love to hear any suggestions, complaints, modifications, feature requests, compliments etc.

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this