I think I found the workaround for this issue. We need to override the set columns method in a extended ADG class and add the code to free the dictionary holding on to the itemRenderers. Here is the code.
<?xml version="1.0" encoding="utf-8"?>
<mx:AdvancedDataGrid xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
override public function set columns(value:Array):void
{
super.columns = value;
itemRendererToFactoryMap = new Dictionary(false);
}
]]>
</mx:Script>
</mx:AdvancedDataGrid>
7 comments:
good to know. will this be fixed in the next version/hotfix?
Yes! I have no doubts.
Hi Sreenivas,
I have been following your blog for quite some time now.. and kudos to you for your good work.
I have a doubt though.. I thought it would be good to ask you..here it is...
In our project we have a requirement to create custom components and
distribute them to fellow team members.
So as we know we need to create a SWC file for all the custom
components which is fairly simple using flex builder.
However, I want that these custom components must be listed in a
separate category inside flex builders component view instead of
listing all of them under 'custom' category.
Ex:
-myCategory
comp1
comp2
When I searched a bit I found that a design.xml or a manifest file is
needed in which we can put together all the properties and categories
of custom components.
Unfortunately I am not able to figure out how to make this work.
I also heard that you need a design.xml file to be put into the FlexLibrary Project to achieve this. Do you have any thoughts on this?
Thanks
Rahul
One can create a design.xml file and include it the Flex Library project. In the Project Properties dialog go to the Assets tab in Flex Library Build Path option.
Check the check box againest design.xml file.
On building the swc file you can open it as a zip file and make sure that design.xml is indeed included in the SWC file.
Thanks much
How can we retrieve updates of the datavisualization.swc (which comes with Flex Builder 3)? Are the updates downloadable somewhere?
Thanks!
As far as I know there are no updates available anywhere.
Post a Comment