Maybe Flex SDK bugs: visible converters element DataGrid control

Hi all, I'm still a noob to flex, but this seems a little strange to me.

I tried to hide a converter button in a DataGrid control, but he would just hide.  I was setting visible inside the mxml and also in the class that extends the buttonbut would just hide.  Then, I overloaded the property visible set/get back what was setting the property and found that inside the DataGridBase.as the setupColumnItemRenderer function sets still visible of the renderes to true.

DataGridBase.as
protected function setupColumnItemRenderer (c:DataGridColumn, contentHolder:ListBaseContentHolder,
rowNum:int, colNum:int, uid:String, data: Object): IListItemRenderer
{
var listItems:Array = contentHolder.listItems;
var point: IListItemRenderer;
var rowData:DataGridListData;

Item = listItems [rowNum] [colNum];
If (! point | itemToUID (item.data)! = uid)
|| columnMap [item.name]! = c)
{
Item = createColumnItemRenderer (c, false, data);
If (point == null)
Returns a null value.
If (item.parent! = contentHolder)
contentHolder.addChild (DisplayObject (item));

a space is used if there is no so text widgets get a default size
columnMap [item.name] = c;
If (listItems [rowNum] [colNum])
addToFreeItemRenderers (listItems [rowNum] [colNum]);
listItems [rowNum] [colNum] = item;
}

[Mat] left in the above block out because
the element is without a doubt at this stage and still need
its up-to-date information
rowData = DataGridListData (makeListData (data, uid, rowNum, c.colNum, c));
rowMap [item.name] = rowData;
If (item is IDropInListItemRenderer)
IDropInListItemRenderer (point) .listData = data? rowData: null;
Item.Data = data;
item.Visible = true;

If (uid & & colNum == 0)
contentHolder.visibleData [uid] = item;
return item;
}

Why would he do that?  If it should not respect the visible property for the mxml rendering engine already set and not force it to true on init?

Converters use the visible property to recycling.  Invisible rendering engines are not supported.  The attack detection logic he would find the cell, it belongs to the same if it were invisible.  You can set alpha = 0, but that does not block the attack detection logic.

Why are you trying to hide a converter?

Alex Harui

Flex SDK Developer

Adobe Systems Inc..

Blog: http://blogs.adobe.com/aharui

Tags: Flex

Similar Questions

  • How do I scroll a datagrid control, so that a column is visible?

    People,

    I have a DataGrid that contains a large number of columns.  I went on a horizontal scrolling, so I can now scroll horizontally across the table to my desired location.  What I want to achieve now is the ability to scroll the table programmatically so that a column is visible.  Anyone has any advice or revenue as to how this could be achieved (if any)?

    Thanks in advance.

    Neil

    Must be:

    dataGrid.horizontalScrollPosition = Math.min (desiredColumnIndex, dataGrid.maxHorizontalScrollPosition)

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Support TLS 1.2 Air Desktop Version-Flex SDK 4.5.1

    Hi all

    I'm new to this forum. I'm working on the desktop air application. recently of Salesforce announced we'll disable the TLS 1.0 since their servers and they will support the TLS Protocol 1.1,1.2. Here is test url that we can use to test in the Office of the air: https://tls1test.salesforce.com/s/. I went through some of the messages in this forum and have not found similar post about this issue. I found one, but it did not help either: done FLEX and AIR support TLS 1.1 + encryption?  


    I wrote the code to verify that the url below. SecureSocket connection is successful. but UrlRequest is a failure, because it uses TLS 1.0 version to connect to the server, since Air app uses the TLS 1.0, the handshake protocol is a failure. I found this info in wireshark: TLSv1 Record Layer: alert (level: Fatal, Description: failure of the handshake)

    Screen Shot 2015-11-12 at 11.57.16 AM.png

    My goal is to spend my desktop client to support TLS 1.2 Protocol. I use the version of the Flex SDK 4.5.1 to build the application. Can you please help me understand this issue?

    1. Is there anyway to set the version of the Protocol TLS for UrlLoader and UrlRequest?
    2. I need a client certificate to authenticate with the server for TLS 1.2 Protocol?
    3. This will work if the upgrade from Flex and Air SDKS, I tried, it doesn't work, but do not know what I have tried is correct or not?

    Import flash.display.Sprite;

    Import flash.events. *;

    Import flash.net.URLLoader;

    Import flash.net.URLRequest;

    Import flash.net.URLRequestDefaults;

    Import flash.net.URLRequestHeader;

    Import flash.net.URLRequestMethod;

    import flash.net.URLVariables;

    private function {URLRequestHeaderExample()}

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    configureListeners (loader);

    SecureSocketExample();

    var header: URLRequestHeader = new URLRequestHeader ('Permission', ' sampleToken');

    var request: URLRequest = new URLRequest ("""https://tls1test.salesforce.com/services/oauth2/token"""); / /https://tls1test.salesforce.com/

    //request.data = new URLVariables ("name = John + Doe");

    Request.Method = URLRequestMethod.GET;

    URLRequestDefaults.idleTimeout = 1200000;

    request.requestHeaders.push (header);

    try {

    Loader.Load (request);

    } catch (error: Error) {}

    trace() "Unable to load the document asked." );

    }

    }

    private function configureListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.COMPLETE, completeHandler);

    dispatcher.addEventListener (Event.OPEN, openHandler);

    dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpRespoStatusHandler);

    }

    private function completeHandler(event:Event):void {}

    var loader: URLLoader = URLLoader (event.target);

    trace ("completeHandler:" + loader.data "');

    }

    private function openHandler(event:Event):void {}

    trace ("openHandler:" + event "");

    }

    private function progressHandler(event:ProgressEvent):void {}

    trace ("progressHandler loaded:" + event.bytesLoaded + "total:" + event.bytesTotal);

    }

    private function securityErrorHandler(event:SecurityErrorEvent):void {}

    trace()"securityErrorHandler:" ( + event); "."

    }

    private function httpStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpStatusHandler:" ( + event); "."

    }

    private function httpRespoStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpRespoStatusHandler:" ( + event); "."

    }

    private function ioErrorHandler(event:IOErrorEvent):void {}

    trace()"ioErrorHandler:" ( + event); "."

    }

    private var secureSocket:SecureSocket = new SecureSocket();

    private function SecureSocketExample()

    {

    secureSocket.addEventListener (Event.CONNECT, onConnect)

    secureSocket.addEventListener (IOErrorEvent.IO_ERROR, onError);

    try

    {

    secureSocket.connect ( "tls1test.salesforce.com", 443);

    }

    catch (error: error)

    {

    trace (Error.ToString);

    }

    }

    private function onConnect (event: Event):void

    {

    trace() "connected". );

    secureSocket.close ();

    }

    private function onError (error: IOErrorEvent):void

    {

    trace (error.text + "," + secureSocket.serverCertificateStatus);

    }

    []] >

    @kumarkasimala

    Our quality assurance team has been able to reproduce this problem.  We consider you cela a bug and will start working on fixing it for a future release.  Our internal bug for this number is 4095988 in case you need to reference it later.

    Thank you

    Chris

  • Flex SDK 4.1 + 'Use the Compatibility Mode 3 Flex' = PROBLEMS

    7.14.10 / 06:10

    HERE'S THE QUESTION:

    When using the Flex SDK 4.1 and by checking the box 'Use Flex 3 Compatibility Mode', the Visual anomalies occur (regardless if the styles or skins is used). These include text in list ComboBox becomes invisible. It goes the same for the alert box, where no text is seen.

    I am including a screenshot showing the questions. The top image shows what happens when compatibility is checked - the ComboBox list text is invisible. The lower picture combo shows what happens when the box is not checked.

    Please note that when you use the old Flex 4.0 SDK these visual anomalies are not and everything works fine.

    proof.png

    @Jason Villmer,

    In my view, the problem you describe is http://bugs.adobe.com/jira/browse/SDK-26940.

    There is a workaround solution listed in the bug report that works (based on my tests), or you could probably put the leadership styles and layoutDirection worldwide using a block Style.

    Peter

  • Problem with AdvancedDataGrid in Flex SDK 3.3

    Hello Forum,

    I downloaded and installed Flex SDK 3.3. Once I did my environment for the 3.3 SDK compiler complained that he cannot find the AdvancedDataGrid component in the path. After some research, I was able to solve this problem by downloading Flex 3.3 Data Visualization Components of http://www.adobe.com/products/flex/flexdownloads/. Then I had to unzip the file downloaded in the /sdk_3.3.0_install_dir/

    I don't think that I had to go through that in my previous installations - 3.2 and 3.1. No one knows the reason for this step both download and installation?

    Also, I would use a new class of vector in my future development, anyone know what version of the SDK it provides?

    Much appreciated,

    Mike

    Hi Mike, the two-step process is because the AdvancedDataGrid and graphic elements are not part of the Flex SDK, they are additional components that come along Flex Builder 3 Pro

  • Flex Builder error: Namespace 2.6 in the application descriptor file must be equal to or greater than the minimum version 3.1 required by Flex SDK.

    "2.6 Namespace in the application descriptor file must be equal to or greater than the minimum version 3.1 required by the Flex SDK kit."

    what it means?

    to run the application

    (1) I need lower version 3.1

    (2) I need a newer version than the 3.1

    I'm confused.

    You can change the project xml file. I solved like this.

  • Building Flex SDK

    I have download the Adobe Flex SDK 4.6, modified the DropDownController.as file, run the ant script to generate her updated the SDK.

    I created the Flex with this updated SDK project, but still the old code is reflecting instead of the updated SDK.

    What I am doing wrong.

    (PS: I try to avoid making the monkey patching)

    I think monkey patching is much easier.

    If you use RSL, then your changes will not be in the official RSL and you will need to monkey patch.

    If you are linking static libraries then what you should work even if Flash Builder requires a reboot that it can cache the old SWCs.

    -Alex

  • Unknown Flex SDK: «Extension Builder 4.5»

    Hi-

    I investigated this during a few days and I can't find an answer. I have a license Extension Builder 2 and am subscribed creative cloud. My ideal scenario is to build my extension with Fb 4.7. However, this seems so an unsupported configuration...

    My second best option is to build with 4.6:

    I install CS Extension Builder 2.0 in FlashBuilder 4.6.

    Installation seems to fill.

    I build a simple helloworld project.

    I target for SC 6.

    I select run as Adobe Indesign Extension

    I get the error: Unknown Flex SDK: «Extension Builder 4.5»

    Of course, my project is "Extension Builder 4.5" but this SDK is not installed. Or unrecognized. Or...

    Help, please. I encountered this on two separate computers (both mac os 10.8.3) and I am puzzled.

    I solved this. I have redownloaded and installed 4.6 FB.

  • Flex sdk 4.1 request show

    My request consists of 4 modules developed in flex sdk 4.0, has clusters of resource (Eng. and Spanish), now, we have designed the 5th module with flex sdk4.1 a eng and bundles of resources, when I

    Compile and run the app (5 modules) whole under unix with sdk4.0environment, each module is loading fine, until the charges of 5 modules, when 5th module loading, for the first time Spanish isn't

    loading, the entire page is empty, when I switch back to English it takes care of everything, and then you click on Spanish it works fine, every time when I change the viewstack the Spanish does not work for the

    first time. I debugged the issue, it gives no error,

    method Intialize() is called, creationcomplete is not called for main component viewstack.

    I changed all the 5 modules for bending sdk4.1 and respected and it works very well without Spanish loading problem.

    My question is their anyway I can use use sdk4.0 and run the application.

    they all matter to develop a module with sdk4.1 and compling it with 4.0?

    Your first message says that you had created the 5th module in a different SDK.  Who is this?

  • With the help of native Extensions with Flex SDK 4.6.0

    Hello

    I try to get the example of Mac OS x Bonjour everybody works with the Flex SDK 4.6.0 kit. I've changed in all the places where there 4.5.1 / etc, got the XCode project to compile properly, but I got stumped on a problem at step 3. The result I get at the end of step 3 is:

    + "/ Applications/Adobe Flash Builder 4.6/sdks/4.6.0/bin/adt ' - package - PKCS12 - keystore src/assets/test.pfx - storepass stores no - target ane airrt.ane src/extension.xml CFC - src/assets/com.airrt.extensions.swc-plateforme MacOS - x 86 - C src/assets/platform/mac.

    Swc file is invalid. The NameSpace extension requires version SWF 13 or lower.

    / Users/owenbennett/Documents/projects/Flash/Native Extensions OSX/NativeExtensions

    Any ideas?


    Thank you

    Owen

    Too bad

    Figured it out. Here are the steps that I followed, using the kit 4.6.0 Flex SDK and XCode 4.1:

    1. 00 - create cert-> go.sh and 01 - create CFCS-> go.sh and 03 - create ane-> go.sh 04 - create dmg-> go.sh and 05 - running on adl-> go.sh and goall.sh

    change

    Flex_sdk = / Applications/Adobe\ Flash\ Builder\ 4.5/sdks/4.5.1-air3.0

    TO

    Flex_sdk = / Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0

    2. 02 - create the extension of the platform-> mac-> TestNativeExtension-> TestNativeExtension.xcodeproj

    Open the project in XCode, select the root of the project, and then TARGETS-> TestNativeExtension-> build settings

    change Search-> Search framework paths paths

    Debug: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac.

    Release date: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.0-air3.0/runtimes/air/mac.

    "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac.

    TO

    Debug: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac.

    Release date: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac.

    If you want to check it is OK to build, don't forget to change the target (at the top of the run key) for TestNativeExtension > My 32-bit Mac

    3 03 - create ane-> src-> extension.xml

    change

    http://ns.Adobe.com/air/extension/2.5">

    TO

    http://ns.Adobe.com/air/extension/3.1">

    4 04 - create dmg-> src-> NativeExtensionTest - app.xml and 04 - create dmg-> src-> asset-> NativeExtensionTest - app.xml and 05 - running on adl-> src-> NativeExtensionTest - App.xml

    change

    http://ns.Adobe.com/air/application/3.0">

    TO

    http://ns.Adobe.com/air/application/3.1">

    and who should build for you!

    Owen

  • Flex assess dynamic string for headerText datagrid

    Hello: I m new on Flex and creates headerText to a datagrid (dgTop250). How can I get the headerStr variable to evaluate properly in the last line of the function? With the code below, I get the entire string as the header of column in the datagrid control, not the evaluated expression that I need. HeaderStr variable evaluates correctly, I just need to evaluated in the headerText statement... I know that the eval function is not available in AS3.

    public function get250(event:ResultEvent):void {
      (var i:int = 0; i <= dgTop250.columnCount; i++) {
       
    var colName:String=dgTop250.columns[i].dataField;
       
    var headerStr:String="top250.lastResult.IMS001HQ2.SGM.getItemAt(i)."+colName+".label";
       
    (dgTop250.columns[i] as DataGridColumn).headerText = headerStr;
      }
    }

    For example, this is what I get as a header: top250.lastResult.IMS001HQ2.SGM.getItemAt (i). STOCK.label

    That's what I need: Stock Number

    "Stock Number" is the label STOCK.

    Thank you

    Have you tried all other combinations - I don't want to duplicate your attempts.

    Or can you put more code so I have a try myself here.

    Can try without a point before hooks

    var headerStr:String=top250.lastResult.IMS001HQ2.SGM.getItemAt(i)[colName].label;

  • Where the Flex SDK 4.5.0.18623 SDK?

    http://fpdownload.Adobe.com/pub/Flex/SDK/builds/flexundefined/flex_sdk_4.5.0.18623.zip

    I am trying to download the latest version of the SDK of heroes with from this open source address of the Adobe Labs site, but I get the error 404 below:

    Not found

    The requested URL /pub/flex/sdk/builds/flexundefined/flex_sdk_4.5.0.18623.zip was not found on this server.

    http://opensource.Adobe.com/wiki/display/FlexSDK/download+Flex+hero

  • Lack of base class for events (flash.events). Flex SDK 4.1 | Flex Builder 3

    Hello

    I'm experience the following problem, I can't locate or find the base class for events when I do "import flash.events;"-AutoComplete does not work as well. import flash. available only - flash.errors and flash.text

    However if I spend the Flex SDK 4.1 to 3.2 the Flex SDK kit so no problem and I can add flash.events

    SDK Flex 4.1 version is 4.1.0. 65265, I also tried Flex 4.0 SDK, the same problem, not able to find events.

    Requires the flash player version I tried both: 10.0.0 and 10.1.0 does not.

    Could you please suggest what might be wrong. Unfortunately not be able to find this info in the forum or google

    Thank you

    Kind regards

    Marakame

    Have you tried

    import flash.events. *;

    Or

    import flash.events.Event;

  • Flex 4 grid data: text Elements can be interactive?

    It is more a question about the possibilities, since I have not used datagrids beyond SQL/PHP data display in the columns.  I already saw that columns can be customized, colorful décor, so I suspect that many other properties can be changed as well.

    Text in a datagrid control can respond to the events of mouse as the text box and other text controls?  Can have ToolTips?  Pop-up windows?  In addition, the text can be formatted as html text?

    Or control datagrid isn't a good match for the display of the "files", but not what I want to do?

    Thank you.

    You must use converters of point for datagrid columns. So you can view the data in any form you want and then you can view ToolTips and other things you want for individual renderers.

  • How to disable the elements (gray out) in the DataGrid control?

    Hello

    I need to implement a component custom for a selectable list with a maximum selected items.

    in other words, when the selected items reached the maximum, all unselected items will be gray outside.

    Now I am able to use the DataGrid control to display a selectable (by itemRenderer) "checkbox" to the first column, to let the user select the item.

    And the name of the list in the second column.

    But I can't find a way to grey out (disable) these no selected item when max is reached.

    Can someone give advice?

    Here is my code snippet:

    SelectableListView.mxml

    < mx:VBox ' xmlns:mx = ' http://www.Adobe.com/2006/MXML " " width ="100%" height = "100%" "visible ="true">

    "" " < mx:DataGrid id ="list_datagrid"dataProvider =" {} {this.stringList}"showHeaders ="false"

    "" "" editable = "false" "selectable ="true"verticalGridLines ="false"borderStyle ="No"alternatingItemColors = '[#F8F8F0, #FFFFFF]"

    "" "" left = "5" rowCount ="16" rowHeight = "20" height ="83" width = "100%"top ="0"doubleClickEnabled = "true" doubleClick ="onDoubleClick (event)" >

    < mx:columns >

    " < mx:DataGridColumn id ="listCheckBox_col"dataField ="selected"editable ="false".

    "itemRenderer ="ListRenderer"width ="18"headerText =" ' resizable ="false" draggable = "false"/ > "

    " < mx:DataGridColumn id ="listName_col"dataField ="name" / >

    < / mx:columns >

    < / mx:DataGrid >

    < / mx:VBox >

    ListRenderer.mxml

    < mx:Canvas ' xmlns:mx = ' http://www.Adobe.com/2006/MXML " " width ="100%" height = "60" > "

    < mx:Script >

              <! [CDATA]

    private function setInUse(): void

                   {

    _data.selected = listInUse.selected;

                   }

    []] >

    < / mx:Script >

    "" " < mx:CheckBox id ="listInUse"width ="18"height ="18"click ="setInUse()"selected =" _data.selected{}"/ > "

    < / mx:Canvas >

    What is listInUse insdie the itemRenderer? I'm not very clear on how you use

    it. However, there are 2 ways to do this. Do not know if data.selected can be used

    to toggle the itemrenderer. I'll so guess not. Have a bindable extra

    "enabled" in your model of dataProvider property. Thus, when you reach the maximum of

    selected items through the collection and defined the set of the activated

    as a result. The enabled property of the renderer is linked to active so model

    It should be updated accordingly. The other way is to bind the license of the

    rendering engine on the selected. But as I said I don't know how your code works...

    HTH,

    C

Maybe you are looking for

  • 4620 OfficeJet won't print black

    My printer does not print anything in black. I replaced the cartridge black and tried everything to troubleshoot print quality and troubleshooting blank pages printed without result. I tried using Mac OS X 10.8 and Windows 7 64-bit, with the same res

  • Include .vi with DAQmx .vi SERIES

    Hey everybody, I searched the forums looking for examples of the integration of two .vi, but are short on key words to search for. So here's my question. I have two separate .vi that operate independently. The first collects the DAQmx data and writes

  • How to open a document in word from a url?

    We have a document server, and I need to open a MS Word document that is a model for LabView fill (using bookmarks and Connectivity Toolkit). I looked at the URL generator and I can't get this to work.  The Document get opens the document, but is not

  • After loging in I end up with a black screen and mouse

    whenever I turn on my computer it starts as normal until it come to the login screen, I log in and the welcome screen come but after that I end up with a black screen and a mouse. I tried to stop programs from starting when windows does and have even

  • Install vWorkspace MR1 8.0 on w2k12 has been interrupted.

    At the end of the installation of vWorkspace MR1 8.0 on w2k12 was interrupted with the error: Error 1329. Failed to install a file that is necessary because the C:\vWorkspace_X64\VWORKSPACE\CB.cab file is not digitally signed. This may indicate that