Error with Column Settings Popup

clock June 28, 2010 06:33 by author Flexicious



I am trying to use the User Preferences part of the grid.
By default all columns show and when I unclick all and click any other column, I get the following error:

ReferenceError: Error #1069: Property name not found on com.flexicious.grids.columns.XXXXX and there is no default value.

Answer:

This happens when you are using a newer version of the library (1.4+) with an older version of the sample code.

Steps to resolve:

1) Go to http://www.flexicious.com/resources/Flex/srcview/index.html

2) Download Source(from the bottom left hand corner)

3) From the zip, pick up the SaveSettingsPopup.mxml file, and overwrite the version of this file in your project with the updated file from the zip.



Wierd behavior with edit enabled datagrids

clock June 26, 2010 08:33 by author Flexicious

Question:

In our Flexicious grids, a double-click usually opens a small popup form for editing the record.  We pass an object to that popup which is altered on edit/save and it appears to correctly update the grid with the new values when the popup is closed (because the object is being passed by reference).

What we’re noticing is that when the grid is sorted, occasionally (at least 50% of the time) the selected record actually moves by one or two indexes in the grid.  It’s not a huge issue, since the record is still updating correctly in the grid, but it’s a little weird.....

Answer:

This behaviour is a byproduct of using the filterFunction along with sort on. In filterPageSortMode=client, flexicious leverages the fiterFunction property of Adobe's ICollectionView. When you turn this on, the grid refreshes on each update to any object within the dataprovider. The post below summarizes this issue very well:

http://tomek.me/disable-sort-on-datagrid-edit-update/

Attached, is a file that demonstrates this same issue with the Adobe DataGrid, and a way to bypass it.
In short - you could either disable Auto Update, or use the modified ArrayCollection. If you disable autoupdate, you may have to manually call processFilter on the grid, which will refresh the grid UI for you.

 

 

FlexiciousSandbox.mxml (4.43 kb)



Errror : Instantiation attempted on a non-constructor.

clock May 21, 2010 07:50 by author Flexicious
Q:
=========================================================
I copied in the attached shopping cart and when I click on it I get:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls::AdvancedDataGridBaseEx/getSeparator()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4618]
at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4660]
at mx.controls::AdvancedDataGrid/createHeaderSeparators()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:2428]
at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4574]
at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2119]
at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:2899]
at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3468]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
 
=========================================================
 
We had this error a long time ago and it turned out to be a corrupt sdk install.
http://kb2.adobe.com/cps/403/kb403121.html
 
Depending on the sdk you have, one of the following suggestions should address
the issue
1) If you are on Flex 3. ensure that you have the latest 3.5 sdk (along with the datavisualization sdk)

2) If you are on Flex 4, ensure you have the latest sdk, and we have sent you the library specifically for Flex 4. 
3) Include the attached Style.css, (depending on what
build of the Flex sdk you have, you may have to update the namespace declaration
from @namespace mx "library://ns.adobe.com/flex/mx"; to @namespace mx
"library://ns.adobe.com/flex/halo";

Style1.css (8.92 kb)



Unable to resolve a class for RequiresLicense handler:

clock May 18, 2010 04:39 by author Flexicious

A couple of our clients/prospects have reported this error:

Error: Unable to resolve a class for RequiresLicense handler: mx.controls.advancedDataGridClasses:DMVLicenseHandler.

This usually happens when the sdk is missing the datavisualization bits. (Flexicious contains the ExtendedAdvancedDataGrid that pulls in the AdvancedDataGrid).

Up until Flex 3.5, the Flex datavisualization sdk was a seperate download (link below). It needs to be downloaded seperately and extracted on top of the default Flex sdk.

The solution is simple. Go to the following link

http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk and download:
Adobe Flex 3.5 Data Visualization Components for Flex Builder

Then follow the step by step instructions here:
http://www.webappsolution.com/wordpress/2009/04/22/installing-flex-33-sdk-data-visualization-33-swc/


If you have the datavisualization bits, your build path should look like below: