How do I get access to an AdvancedDataGridRendererProvider?

In the snippet of the following code:
<mx:rendererProviders>
<mx:AdvancedDataGridRendererProvider depth="2"
column="{protocolID}" columnSpan="1"
renderer="ProtocolComboBox"/>
</mx:rendererProviders>
Can someone tell me how to get access to the ProtocolComboBox
renderer? I can't find an example anywhere.

Okay I think I got this. Part of the solution came from here:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=767
Here is the code for the renderer:
package com.moveit
import flash.events.*;
import mx.controls.ComboBox;
import mx.events.*;
public class PlatformComboBoxRenderer extends ComboBox
import mx.collections.ArrayCollection;
import
mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
private var _oItem:String;
private var myARR:Array = [ "linux", "solaris", "aix" ];
private var myAC:ArrayCollection = new ArrayCollection(
myARR );
public function PlatformComboBoxRenderer()
super();
this.visible = false;
this.enabled = true;
this.editable= false;
this.dataProvider = myAC;
this.selectedIndex = 0;
this.addEventListener(ListEvent.CHANGE, onChangeCBOSelection
public function onChangeCBOSelection( oEvent:Event ):void
_oItem = oEvent.target.selectedItem;
this.dispatchEvent( new PlatformComboBoxEvent(
PlatformComboBoxEvent.PLATFORM_COMPLETE, true, false,
this.selectedItem.toString() ) );
override public function set data(value:Object):void
if( value != null )
super.data = value;
_oItem = value.platform;
invalidateProperties();
override protected function commitProperties():void
super.commitProperties();
if( _oItem )
setSelectedValue();
private function setSelectedValue():void
this.selectedItem = _oItem;
<mx:AdvancedDataGrid xmlns:mx="
http://www.adobe.com/2006/mxml"
selectionMode="multipleRows" enabled="true"
dataProvider="{myTransferInfoGroupColl}">
<mx:columns>
<mx:AdvancedDataGridColumn headerText="ClientName"
width="110" editable="false" dataField="name"/>
<mx:AdvancedDataGridColumn headerText="Client ID"
editable="false" dataField="client_id"/>
<mx:AdvancedDataGridColumn headerText="Transfer ID"
width="110" editable="false" dataField="transfer_id"/>
<mx:AdvancedDataGridColumn headerText="Transfer Name"
width="120" editable="false" dataField="transfer_name"/>
<mx:AdvancedDataGridColumn headerText="Endpoint"
dataField="endpoint"/>
<mx:AdvancedDataGridColumn headerText="Host"
dataField="host" />
<mx:AdvancedDataGridColumn headerText="User"
dataField="user" />
<mx:AdvancedDataGridColumn headerText="Login Pwd"
dataField="login_pwd"/>
<mx:AdvancedDataGridColumn headerText="Platform"
id="platformID" itemEditor="com.moveit.PlatformComboBoxRenderer"
visible="true" editable="false" rendererIsEditor="false"/>
<mx:AdvancedDataGridColumn headerText="Protocol"
id="protocolID" itemEditor="com.moveit.ProtocolComboBoxRenderer"
visible="true" editable="false" rendererIsEditor="false"/>
</mx:columns>
<mx:rendererProviders>
<mx:AdvancedDataGridRendererProvider depth="2"
column="{platformID}" columnSpan="1"
renderer="com.moveit.PlatformComboBoxRenderer"/>
<mx:AdvancedDataGridRendererProvider depth="2"
column="{protocolID}" columnSpan="1"
renderer="com.moveit.ProtocolComboBoxRenderer"/>
</mx:rendererProviders>
public function init():void
myTransferInfoHttp = new HTTPService();
// Insert your domain name
myTransferInfoHttp.url = "
http://freedom.dynalias.org/cgi-bin/SourceBasicTransferInfoDataGrid.cgi";
CursorManager.setBusyCursor();
myTransferInfoHttp.send();
myTransferInfoHttp.addEventListener(ResultEvent.RESULT,
resultTransferInfoHttpHandler);
myTransferInfoHttp.addEventListener(FaultEvent.FAULT,
faultTransferInfoHttpHandler);
this.addEventListener(
ProtocolComboBoxEvent.PROTOCOL_COMPLETE,
this.protocolComboBoxHandler );
this.addEventListener(
PlatformComboBoxEvent.PLATFORM_COMPLETE,
this.platformComboBoxHandler );
public function platformComboBoxHandler(
evt:PlatformComboBoxEvent ):void
var mySelection:String = evt.selection;
var i:int = this.selectedIndex;
var myIndex:int = this.selectedIndex - 1;
trace( "MasterTransferGrid.platformComboBoxHandler(): " +
mySelection );
var record:Array = this.masterGridAC.getItemAt( myIndex ) as
Array;
record["platform"] = evt.selection;
//myCursor.current.platform;
It is important to set the renderer and the visible
attributes as:
itemEditor="com.moveit.PlatformComboBoxRenderer"
visible="true"
and in the constructor:
this.visible = false;
this.enabled = true;
this.editable= false;
It seems to be important to store the values within the
renderer rather than relying on the super class values. Adding the
onChange handler and then invalidating the properties and then
committing them again on the override of the commitProperties().

Similar Messages

  • My old computer had itunes and downloaded songs that I put on my ipod. My old computer got replaced years ago without saving hard drive info or passwords and my iPod burnt out and will not activate. How can I get access to my old songs on new computer.

    My old computer had itunes and downloaded songs that I put on my ipod. Well, my old computer got replaced years ago without saving hard drive info or passwords and my iPod burnt out years ago and will not activate. I now have a new computer and iPod and I have an iTunes account on my iPhone5. How can I get access to my old songs on new computer? Are they lost for good? I have no info about my old computer and old account.

    Downloading past purchases from the App Store ... - Support - Apple

  • I saved a spreadsheet to iCloud now I can not access it.  The message I get say I need a newer version of Numbers but I already have it.  How do I get access to my document on iCloud?

    I saved a spreadsheet to iCloud now I can not access it.  The message I get says I need a newer version of Numbers but I already have it.  How do I get access to my document on iCloud?

    Please see this user tip:
    Need newer version of Numbers to open file

  • How do I get access to recent Creative cloud offer  re Kelby one

    How do I get access to the recent Offer re Kelby One?  I paid for a year subscription to Creative Cloud and it said there was an offer of three moths access

    There are no serials. Refer to this:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • I downloaded iTunes to a new computer and authorized that computer but my music is grayed out and will not play, how do I get access to my music?

    I installed iTunes to a new computer and authorized that computer but my music is grayed out.  How do I get access to my music?

    Is there a way to change that?
    You can easily set up the iPod to automatically sync to your current iTunes library (or just do a Restore), but that will replace the iPod's existing content with content from your current iTunes library (erasing the iPod).  If your old computer was "retired" gracefully and you were able to transfer its complete iTunes user data to your new computer, there is no problem because all of the songs on the iPod now are already in your current iTunes library.  However, if there are songs on the iPod that are not in your current iTunes library, those songs will be lost.  That may be a problem...
    If you want to preserve what is on the iPod, you can try setting the iPod to Manually manage music and videos.  I believe you can do that from an iTunes library that is not the iPod's currently associated library.  Select the iPod in iTunes, so that you see its Summary settings screen.  Check the box for Manually manage music and videos.  (If iTunes puts up any warning about erasing or replacing the iPod's existing content, Revert the change and cancel out.)  Click Apply.  The iPod is no longer set to automatically sync.  But you can add new content manually to what is already on the iPod.  And the songs should not be grayed out. 
    However, you cannot use iTunes to transfer songs on the iPod to your current iTunes library (except for songs purchased from the iTunes Store).  If there are songs on the iPod that are not in your computer's iTunes library, you should eventually "offload" those song files because your iPod can easily break, become corrupted, or get lost.  iTunes syncs content in one direction only (from computer to iPod), but there are third-party methods and utilities that can transfer from iPod to computer.  If you do an Internet search on something like iPod "transfer," you should get some links, including a CNET article on the topic.
    Once all of your songs are "consolidated" in your current iTunes library, you can set up the iPod for automatic syncing to that library.

  • When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Please help. My ipod classic could not be recognised by itunes when I connect my ipod to PC. Previously it has been recognised before I updated. This was a while ago now and so I removed all apple files and re installed the latest itunes but am having the same problem.
    When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Some anti-virus programs (e.g., McAfee) have this rule that can be invoked under the "maximum protection" settings: PREVENT PROGRAMS REGISTERING AS A SERVICE. If that rule is set to BLOCK, then any attempt to install or upgrade iTunes will fail with an "iPod service failed to start" message.
    If you are getting this problem with iTunes, check to see if your anti-virus has this setting and unset it, at least for as long as the iTunes install requires. Exactly how to find the rule and turn it on and off will vary, depending upon your anti-malware software. However, if your anti-virus or anti-malware software produces a log of its activities, examining the log may help you find the problem.
    For example, here's the log entry for McAfee:
    9/23/2009 3:18:45 PM Blocked by Access Protection rule NT AUTHORITY\SYSTEM C:\WINDOWS\system32\services.exe \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\iPod Service Common Maximum Protection:Prevent programs registering as a service Action blocked : Create
    Note that the log says "Common Maximum Protection: Prevent programs registering as a service". The "Common Maximum Protection" is the location of the rule, "Prevent programs registering as a service" is the rule. I used that information to track down the location in the McAfee VirusScan Console where I could turn the rule off.
    After I made the change, iTunes installed without complaint.

  • If I own Adobe Photoshop Elements 12 and have it installed on my computer, how can I get access to Adobe Bridge without a monthly subscription?  Is there a way to use Adobe Photoshop and Bridge without paying a monthly fee?

    If I own Adobe Photoshop Elements 12 and have it installed on my computer, how can I get access to Adobe Bridge without a monthly subscription?  Is there a way to use Adobe Photoshop and Bridge without paying a monthly fee?

    Hi Jaclyn2,
    Please follow the steps mentioned in the kb: http://helpx.adobe.com/creative-suite/kb/error-update-server-repsonding-cs4.html .
    Regards,
    Romit Sinha

  • How do I get access to my backed up data in the iCloud?i

    How do I get access to my backed up data on the cloud?

    Just go to iCloud.com and log in.  Choose iCloud Drive if you are looking for documents that you lost on your mac and had put into iCloud drive prior to your hard drive dying.  Contacts, Mail, Calendars will all be there under the log in to choose from.

  • Apple tv 2 - root password has been changed to non default.   I need to access apple tv 2.   how do i get access with a forgotten password

    apple tv 2 - root password has been changed to non default.   I need to access apple tv 2.   how do i get access with a forgotten password

    Welcome to the Apple Community.
    It depends on which password you are referring to, but generally speaking you can always restore the Apple TV.

  • How could i get access to MDM API,Is it available to all Enterprise accounts?e

    Hi ,
    I am trying to develop an enterprise application which needs to list all the installed Enterprise apps in the device.Also there is an option to delete the installed enterprise apps from device.I found that this can be done only by setting up a customized MDM server.My company already has an enterprise account.I have some doubts related to this
    1 . Is it possible to setup a custom MDM server using MDM API's?
    2. How could i get access to MDM API's to setup a custom MDM server/
    3. Is MDM server provided only by third party vendors?
    4. Is MDM server /MDM API available to all enterprise accounts?
    Looking forward  for a quick response.
    Thanks in advance

    A backup of a device with a newer version of iOS cannot be retored to a device with an older version.  The solution is to connect to itunes and update the new device's iOS, then perform a restore.

  • How do i get access to iTunes Brazil on my US-bought iPad and Mac now that i live in Brazil?

    i am an american who now lives in brazil and i want to get access to the brazilian iTunes site, but my iPad and Mac that I bought in the US before i moved don't seem to want to download the regional iTunes. How can I get access and share my downloads in my existing iTunes library?

    no never got an answer..  I can not log into or publsh my book...  can someone tell me why

  • How can I get access back to sounds and lessons I have not downloaded before updating?

    When I purchased my Mac about two months ago, I had access to all of the lessons and sounds, I just had to download them.  I recently downloaded and installed the update and in doing so I lost access to sounds and lessons I had not downloaded.  It tells me that I need to purchase the sounds and lessons package.  How can I get access back since I have already purchased it?

    Apple does not support downgrading the iOS.
    Yes, iOS 7 looks quite different. But there are many new and valuable features. As time goes on you will not remember how it used to look.

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • How do I get access privileges?

    How do I get access privileges to sync my iphone4?

    Hi, do a Get Info in Finder on the folder & file you're trying to use, what rights does it say you have?

  • HT4910 My iTunes is up to date on my mac OSX 10.4.11 - how do I get access to iCloud?

    My iTunes is up to date on my mac OSX 10.4.11 - how do I get access to iCloud?

    For iCloud, you need a version of iTunes 10, and 10.4.11 only supports up to 9.2.1.  10.4 offers no iCloud access, while 10.5 and 10.6 have limited access.  Only 10.7 and 10.8 are integrated with iCloud.

Maybe you are looking for

  • What is raise form_trigger_failure

    db and dev 10g rel2 hi all , could you please tell me about the functionality of this statement ? what can i do with it ? i searched the online help , and i found just one page ,and got nothing from it , and there is nothing in the documentation . th

  • User-Groups Change history

    Hi, Does SAP system maintains the user-groups change history in any tables. Like it does for users in USH* tables. Is Group Creation date, etc is recorded in any table ? If user-group description is changed, is it recorded in any tables ? Any pointer

  • Downloading iTunes 9 for new Touch not working

    Today I bought a brand new iPod Touch, 32 gb, 3rd gen. I plugged it in. The screen to the touch responded immediatly, however, my iTunes did not. I've come to the conclusion that I need iTunes 9. Though when I try to download it, it almost completes

  • How to increase battery HEALTH

    i checked my battery health after installing istat pro today, and it said my battery health was currently at 46%. how can i bring that back up if that's even possible?

  • How can disable the annoying "Install addons only from authors you trust" popup?

    It gives no new information, but annoys me a lot. I know what I do and don't need warning poups, thank you, and would be the happyest if this browser had decent built-in features and would be useable without a cartload of addons, like Opera.