Advanced DataGrid - converters - Possible to reference the columnIndex parameter?

When you work with AdvancedDataGridRendererProvider in an advanced Datagrid - is - it is possible for the rendering code reference the AdvancedDataGridRendererProvider columnIndex parameter?

Thank you.

I have attached two examples that use the AdvancedDataGridListData properties so that they can be reused in different columns. The first is an example MXML which extends canvas and uses bindings to set the text and tooltip on a Label control. The second provides similar functionality in ActionScript by extending UIComponent. The ToolTip displays some of the information that is accessible through the AdvancedDataGridListData object.

The AdvancedDataGrid will inject an AdvancedDataGridListData instance in any element converter that implements the IDropInListItemRenderer interface. To implement this interface that you use the 'implements' keyword when you declare the class and add getters and setters for the listData property. I did it for each converter in the example.

Simpler example MXML, the ActionScript example should perform better.

Tags: Flex

Similar Questions

  • DataGrid converters (possible classfactory?)

    I'm still relatively new to Flex, but I think that this should be possible, but I can't understand it.

    I posted this question earlier, but I think that I watched him badly.  Here is an example of an XML giving the statistics of baseball player: (I'm not actually doing something based on baseball, but I can't disclose the actual data, but it is a good comparison)

    Example of

    < columns >

    < column dataName = 'HR' > Home Runs < / column >

    < column dataName = "BatAvg" > a batting average < / column >

    < / columns >

    < player >

    < drive >

    < name of team 'Pirates' = > Bob Smith < / name >

    < HR rank = "1" > 35 / < hr >

    < BatAvg rank = "46" >.245 < / BatAvg >

    < / player >

    < drive >

    < name of 'Cardinals' = team > Frank Sinatra < / name >

    < HR rank '2' = > 34 / < hr >

    < BatAvg rank = "23" >.300 < / BatAvg >

    < / player >

    < / players >

    What I want is to have a datagrid control.  Each line will be two top lines.  The first column is the name of each player with their team from below.  There should be a column for the other stat.  Each column would have the stat with the second word of line "grade:"and the ranking given. "  When you click on the headers, it should order by rank, if it be the stat, that is fine too.

    Using the data above.

    Reader Home Runs Batting average

    Bob Smith

    Pirates

    35

    1 row

    .245

    46 classified

    Frank Sinatra

    List of Cardinals

    34

    Rank 2

    .300

    23 classified

    I don't know there will be the number of columns.  It could be 3, it could be more than 20 (which makes a very illegible datagrid, I know, but that's it).  It is difficult to encode each column and the rendering problem, especially because I don't know what will be his stats it (remember, it's not really about baseball ).

    I can hardcode the first column without problem.  The other columns are the problem.  I have had no problem adding columns when he was just the stat.

    It looked like something like:

    var columnsList:XMLList = event.result.columns.column;

    var tempCol:DataGridColumn;

    var tempColArray:Array = playersGrid.columns; //playersGrid is the datagrid

    for each (var currColumn:XML in columnsList)

    {

    tempCol = new DataGridColumn();

    tempCol.headerText = currColumn.text ();

    tempCol.dataField = currColumn.attribute('dataColumn');

    tempColArray.push (tempCol);

    }

    ligandsGrid.columns = tempColArray;

    But now there is another room added to each column.  I was watching ClassFactory, but I have not practiced and could not know how to do this with them, but I'm sure that the answer lies there.

    Thank you!

    You cannot create new classes at run time.  You can have a set of converters

    You can choose between and/or were converters that reconfigure their children

    based on the data

  • [Advanced] Is it possible to put the IP Address of the default gateway for a vmnet NAT?

    I am trying to duplicate a computer lab on my Mac environment, and I need the bridge will be located at one address other than VMWare wants to implement.  I know how to create a static IP address for a virtual machine, but I need adjust the routers option in Library/Preferences/VMWare Fusion/vmnet2/dhcpd.conf.  Will there be a networking Library/Preferences/VMWare Fusion/to allow this?  Is there something I can put before or after the "DON'T CHANGE" section dhcpd.conf that replace the parameters in this section?

    Except that, is there a way to prevent the re-writing of the dhcpd.conf file after I made a change to VMWare?  I tried it wrong in various ways, including the re - generate the hash SHA1 of the networking file and reset the modification time of the dhcpd.conf to the original time, without success.

    Here are my current settings:

    subnet 10.10.0.0 255.255.0.0 subnet mask}

    range 10.10.128.0 10.10.255.254;

    option broadcast-address 10.10.255.255;

    option domain-name-servers 10.10.0.2.

    option domain-name localdomain.

    by default-lease-time 1800;                # default is 30 minutes

    Max-lease-time 7200;                    # default is 2 hours

    option netbios-name-servers 10.10.0.2.

    routers option 10.10.0.2.

    }

    host vmnet2 {}

    Hardware ethernet 00:50:56:C0:00:02;

    fixed-address 10.10.0.1;

    option domain-name-servers 0.0.0.0.

    option domain-name ";

    routers option 0.0.0.0.

    }

    And I'm changing the gateway to 10.10.0.2 to 10.10.1.250.  Maybe VMWare requires that the first IP address as the host and the second either the entry door and rewritten if not?

    Thanks in advance,

    Dave

    I found a way to do this.  Not sure if it's official, or if it will continue to work in the future.  In addition changes nat.conf, if you simply duplicate the part of the section "DON'T CHANGE" dhcpd.conf below, then the second version of the settings will cancel and replace the first.  Here is my solution:

    # Configuration file for ISC 2.0 vmnet-dhcpd operating on vmnet2.

    #

    # This file was generated automatically by Setup of VMware.

    # See Instructions below if you want to change.

    #

    # Define us domain-name-servers to satisfy some DHCP clients

    # (dhclient such as configured in SuSE, TurboLinux, etc..).

    # We also provide a domain name to the pump (Red Hat 6.x) happy.

    #

    # VMNET DHCP Configuration. Beginning of "DO NOT EDIT ARTICLE" #.

    # Instructions change: this section of the configuration file contains

    # News generated by the Setup program. Do not change it

    # section.

    # You are free to change to everything else. In addition, this section must start

    # on a new line

    # This file will get saved under a different name in the same directory

    # If this section is edited and you try to set up DHCP again.

    # Written on the: 04/11/2015-21:15:15

    allow unknown-clients;

    by default-lease-time 1800;                # default is 30 minutes

    Max-lease-time 7200;                    # default is 2 hours

    subnet 10.10.0.0 255.255.0.0 subnet mask}

    range 10.10.128.0 10.10.255.254;

    option broadcast-address 10.10.255.255;

    option domain-name-servers 10.10.0.2.

    option domain-name localdomain.

    by default-lease-time 1800;                # default is 30 minutes

    Max-lease-time 7200;                    # default is 2 hours

    option netbios-name-servers 10.10.0.2.

    routers option 10.10.0.2.

    }

    host vmnet2 {}

    Hardware ethernet 00:50:56:C0:00:02;

    fixed-address 10.10.0.1;

    option domain-name-servers 0.0.0.0.

    option domain-name ";

    routers option 0.0.0.0.

    }

    # VMNET DHCP Configuration. End of "DO NOT EDIT ARTICLE" #.

    subnet 10.10.0.0 255.255.0.0 subnet mask}

    range 10.10.128.0 10.10.255.254;

    option broadcast-address 10.10.255.255;

    option domain-name-servers 10.10.1.200.

    by default-lease-time 1800;                # default is 30 minutes

    Max-lease-time 7200;                    # default is 2 hours

    option netbios-name-servers 10.10.1.250.

    routers option 10.10.1.250;

    }

    -Dave

  • Advanced DataGrid - you click columns to hide/show based on the level of the child

    I have a Flex application that displays an Advanced DataGrid with three levels in the tree. The default view displays a single column of data. When a child on the floor of the tree is opened, two additional columns are displayed. I want these columns to stay open as long as any kid on the floor is open. I can't find a way to make it work - I can get the columns to be displayed when the user clicks on the 2nd child of level, but I can't find a away from keep them visible until the last child at this level is closed (see my attached code). Is it possible to loop through all the items in the Collection of data to see which ones is open and access data associated to each?

    Attached code (a few pieces that are not connected have been omitted).

    Help, please.

    Thank you.

    Found my answer on my own. I basically loop in the table in the ADG openItems, save the reference that corresponds to the lowest level that is open, then set visibility of each column based on this criterion.

  • DateFormatter in advanced Datagrid

    Hi all

    I am trying to format a date field in the advanced datagrid control, but it displays the incorrect date. It displays either 100 or 2000.

    The data from a webservice and I convert data from the Web service in an arraycollection collection and each element of the arraycollection collection is of a custom type. One of the fields of custom type is a date.

    «The data show in the advanced datagrid correctly but a very long form for example"sea Mar 19 15:55:26 GMT + 0000 2008»

    I want to format the date so that it displays only the year, month and date so in DDD/MMM/YYYY format. For this I use a dateFormatter in the Datagrid column advanced in the following way:

    < mx:AdvancedDataGridColumn headerText = "PriceDate" width = "240" dataField = "priceDate" >
    < mx:formatter >
    < mx:DateFormatter formatString = "DD/MMM/YYYY" / >
    < / mx:formatter >
    < / mx:AdvancedDataGridColumn >


    I of course expect to see "March 19, 2008", but instead, I get "19 March 2000".»

    If you can solve it for me or suggest another way, it would be much appreciated.

    Best regards

    This was solved by using the labelfunction property instead. I don't know why, using a DateFormatter in the Advanceddatagridcolumn has failed - it looks like a bug.

    But the solution is to have the datagridcolumn as:

    and have a DateFormatter on its own in the mxml as in:


    labelFunction = "date_labelFunc" / >

    and the labelfunction should look like:

    private void date_labelFunc(item:Object,_column:AdvancedDataGridColumn):String {}
    Return dateFormatter.format (item.priceDate);
    }

  • Hello, I would like to know if it is possible or there is the possibility to choose the path in the preferences to save backups of ios through itunes for windows pc devices. Thank all participants in advance of the availability, I offer cordi

    Hello

    I would like to know if it is possible or there is the possibility to choose the path in the preferences to save backups of ios through itunes for windows pc devices.

    Thank all participants in advance of the availability, I offer cordial greetings.

    Post edited by: andreava

    No preference, but there is a solution. See moving backup iOS device. See the rest of the tip of the user to do a split cell library if the library files and the media folder are on different drives.

    TT2

  • Structure of the tree in advanced datagrid

    Hello

    I use advanced datagrid to display mainly hierarchical data.

    There are five columns in my datagrid and column name is hierarchical a.

    Problem that I face is symbols of the tree will appear in some other columns. Help, please.

    Hi PAgrawal,

    Advanced DG has property treeColumn that you can assign to your name column

    This will display the tree on mandatory column icons

    Thank you and best regards,

    Abhishek

    ------------------------------------------------------------------

    Abhishek Chaudhary | [email protected]

    Stop: + 91 712 224 5867 Ext:8358, Mob: + 91 992 358 8703

    ------------------------------------------------------------------

  • Possible to change the variable cpQuizInfoPassFail through advanced actions?

    Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,

    Doug Jackson

    Hi Doug,.

    I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.

    If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.

    Lilybiri

  • How is it possible to reset the game Burble Place from beginner, intermediate or advanced?

    Hello

    My son likes to play instead of Burble games and has fairly well mastered the beginner... There are other levels (intermediate and advanced).  I tried to reset the level, but when he enters one of the Burble games after resetting the scores, it is always configured for beginner - I would have thought I could choose a new level as intermediate or advanced... but no option to be able to do this...

    any ideas?

    Thanks in advance...

    Laptop HP ENVY 17-j005tx, HP ENVY 27 - k001a, HP ProLiant MicroServer Gen8 G2020T, HP MediaSmart EX495 Server tilt, HP MediaVault 2020, HP ENVY 120 AiO Printer

    You must open the game first. Then you can select the game in the menu at the top, then press Options. Make sure you click OK.

  • How to use javascript or formcalc to reference the child controls (no name)

    Hello world

    I've created a ton of reports in the past, and I am now looking to create some reusable objects so that other people can use features of advanced form without having to learn to use scripts.

    A lot of the coding was done using this, .parent, etc. so that they can rename controls and subforms without having to worry about breaking the scripts. A question that I have is that some of my code looks at the child controls and refers to their name (for example, I have a code that uses setfocus to move the user to the first field of a subform).

    In most languages, there are ways to refer to child controls through an indexer or an array of elements or children. i.e. Subform.items [0] .rawValue.

    I know that this would cause some problems, but I think I could sort it out, if I only knew where to start. Is it possible to reference a child control without a name?

    Thanks for your help!

    -Scott

    Hi Scott,.

    The subform has a collection of nodes, you can run a loop though, as you suspected him.  If could show more than you want, but you can test the className to see if it is a field, then ui.oneOfChild.className to the type of the field. Then;

    for (var i = 0; i)< subform1.nodes.length;="">

    {

    var n = Subform1.nodes.item (i);

    Console.println (n.className + "" + n.name + "" + n.ui.oneOfChild.className);

    }

    I hope this helps.

    Bruce

  • Failing of DataGrid Item Renderers, personalised in the loaded module.

    I'm an application that manages a lot of types of data records.  You can load the plug-in (in the form of swf modules) which provide additional models record and the views and editors for these record types.

    Above all, it works fine, except for a serious problem: wherever they are defined (inline, in the same file, the same swf or swc interface), any custom spark grid point motors which are used in the loaded views or editors cause my application crash when running.  Oddly, my DataGroup element converters seem to be the same problem, so far.

    I've found a workaround.  In other words, if I fix the rendering engine when running, creationComplete and refer to this renderer in the main application, then it works fine.  However, it's a bit of a pain, if one of my plugin writers want to use a custom grid element converter I have has not planned in advance.  I really want a way for my plugin-developers being able to define new renderers, if necessary.  Clues on how to address this problem?

    Here is the the crash stack trace:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to spark.components::Group/addElement() [E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1342]

    to spark.components.gridClasses::GridLayout/createTypicalItemRenderer() [E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]

    to spark.components.gridClasses::GridLayout/updateTypicalCellSizes() [E:\dev\4.5.1\frameworks \projects\spark\src\spark\components\gridClasses\GridLayout.as:883]

    to spark.components.gridClasses::GridLayout/measure() [E:\dev\4.5.1\frameworks\projects\spark \src\spark\components\gridClasses\GridLayout.as:444]

    to spark.components.supportClasses::GroupBase/measure() [E:\dev\4.5.1\frameworks\projects\spa rk\src\spark\components\supportClasses\GroupBase.as:1148]

    at mx.core::UIComponent/measureSizes() [E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]

    at mx.core::UIComponent/validateSize() [E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]

    to spark.components::Group/validateSize() [E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1012]

    at mx.managers::LayoutManager/validateSize() [E:\dev\4.5.1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:665]

    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:792]

    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

    In fact, I thought that this outing yesterday, but apparently you forgot to answer.

    The problem you are having has to do with modulefactory.  Components of a

    module must have their moduleFactory the value of the module.  This is done

    If you use the on the factory's create() method, or you can assign

    later if you want.

    -Alex

  • iconfunction in Advanced Datagrid

    I am specifying a 'iconfunction' in my advanced datagrid - works but

    not quite as you want.

    I have two flavors of data in the grid: directory (a) and (b) database

    The directory icon, I can easily specify a folder icon. It don't

    not, seems to me to be a way to change this picture in an open folder

    vs file is closed with a click. The icon is what is specified in the

    the function of the icon.

    I tried without success itemclose, itemopen.

    Specification of a default icons game works except that empty

    Directory presents itself as a sheet and pick up the database icon.

    This is not what I want.

    Is it possible to have the best of both worlds?

    TIA, Chris

    Hello

    the only option for you is to use iconFunctions and itemOpen and itemClose eventListeners.

    ItemOpen and ItemClose eventListeners, you must change the property (for example _isOpened) in dataProvider to distinguish open and closed directories.

    IconFunction, you should check this property and the type of data to return the correct icon.

    Hope this helpful.

  • Filtering data grouped in Advanced DataGrid

    I want to display hierarchical data (data groping) in advance DataGrid and at the same time I want so the filtering feature. The problem is that if I want grouped view then I provide GroupingCollection the dataprovider (which has no function filterFunction type functionality).
    Is it possible to fix this?

    I found the solution.

    1. store the data collection ArrayCollection (say ac).

    2 - ac.filterFunction = processFilter / / some filter function

    3 assign this collection for GroupingCollection ArrayCollection (say gc) as a source.
    GC.source = ac

    4 assign gc as dataProvider of dataGrid

    5 - when you want to apply the filter:
    ECL Refresh();

  • Is it possible to use the 32-bit firefox with the plugin java 64 bit?

    Is it possible to use the 32-bit firefox with the plugin java 64 bit?
    I would use 32-bit firefox and I already install the plugin java 64 bit.
    Is this a good choice is not to install the 32-bit java plugin?
    These will cause problems?

    Thanks in advance.
    Kind regards
    Sean

    Nope - you need the 32-bit Java to go with the 32-bit Firefox, if you want that Java run

  • Is it possible to install the same recovery XP 2 times on 2 partitions

    Dear people.

    Is it possible to install the Recovery XP home 2 times on 2 partitions on my Satellite?
    I want one as a desktop and one for music downloads.

    When I boot the second new system installed there say: installation is not complete, please reinstall!

    Thanks in advance

    What model of laptop you have exactly? As previous user written with former recovery media, it should be possible (I can't tell for sure) because the use of the expert installations you can choose the partition where the OS is to be installed.

    If you have newer model cell phone with new software to recovery (RECO) something like this is not possible.

Maybe you are looking for

  • use several fixes for live

    Hello; Sorry if this is a stupid question, but we'll have our first live concert in 2 weeks and I need some information. an instrumental songs is running in the background (desktop dj) and we want to add some live and vocal instruments using the main

  • The battery life on Satellite P100

    I have a Satellite P100-160. The battery life is only 2 hours. I thought it would be more. Any other s battery to give them the same life, or more?

  • a print queue may transfer to another printer

    Original title: queue for transfer to a different printer is possible? I tried to print and after that it wouldn't print I noticed that it was going to my printer at home.  Well well, I'm at work and try to use the printer here. Help, please!

  • Who is the world PC Tech?

    I received a phone call from a company called world PC Tech. They claim that I download a virus everytime I surf internet.  They wanted to get on the computer with me and help clarify.  Who are, how did get my phone number?  How do they know what I'm

  • Message from recvd 8700 blackBerry Smartphones that enabled email accounts

    I have a 8700 Blackberry on T-Mobile. v4.1.0.346 Yesterday I received messages from the activation server for each of the accounts already active e-mail on the device. "Congratulations, you have successfully configured (my email address) with your de