TORB

Members
  • Content count

    4
  • Joined

  • Last visited

About TORB

  • Rank
    Forum Newbie
  1. Angular Gauge - Dial Value behind Dial

    Sorry, only replace < with html code & lt; (without space) and > with html code & gt; (without space).
  2. 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]