Play with the spark datagrid

I play with the spark datagrid and I have a column implemented as follows:

"< GridColumn width ="140"headerText ="Margin"headerText.editMode =" Margin (montage) "dataField ="margin"editable ="false"editable.editMode =" true "itemRenderer ="gridColumnRenderer">
< / GridColumn >

I would like that the rendering of the element to change color depending on the State of the outerDocuent, is it possible?

I tried this but can't seem to the outerdocument

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
autoDrawBackground = "true" >

< s:Label text = "{data .margin}" backgroundColor = "{outerDocument.currentState == 'editMode'? 0xffffff:0xdddddd}" / > "

< / s:ItemRenderer >

I believe that you should not use GridItemRenderer instead of ItemRenderer as base class for renderers in spark DataGrid.  It works if you change that?

Tags: Flex

Similar Questions

  • I let my child play with the computer, now when I click on a tab, it shows "(*)" to bottom of page, as the wheel of the mouse to zoom in and out and not scroll. I don't know how to fix it.

    I have let the child play with the computer. Now when I click on a tab it show (*) rather than to go to the tab, zoom on the wheel of the mouse rather that scroll and all links open a new window. How can I reset the settings to the default ones?
    Thank you.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside...

    After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside... need help pls

    PS noticed the update downloaded twice

    disregard my previous question... I found the answer: F1, F2 has been ticked on.

  • My 3 year old has played with the computer and now my screen is sideways. How should I do?

    My 3 year old has played with the computer and now my screen is sideways.  How should I do? I tried my computer and went through everything on the screen and doesn't change anything.

    Here's how to do hold Ctrl + Alt and then press the arrow keys on your keyboard.

    or right click on desktop, select options graphics then Rotation.

  • My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help?

    My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help? I went through properties and all that it is fine. It has something to do with the keyboard and an F key and control or ALT.

    Hi Sashaxwp,

    To get small icons in your Start menu

    Click Start on the taskbar, and then select Properties from the context menu.
    Ensure that the selected option of Start Menu as ist and click Customize to the right of the Start Menu option.
    This will display the Customize Start Menu dialog box.
    Use the Option Select an icon of Sice to Programms and now select small icons

    To configure your display appearance, wants to get small icons on your desktop

    Right click on an open area of the desktop and select Properties.
    Click the appearance tab.
    Click on 'effects' (in my Version of XP in German), perhaps you will need to click on Advanced.

    In my XP there is a "huge symbols" choice, if you have this choice, remove the hook.

    Good luck and have a nice day!

    Kind regards

    Rainer

  • How can I fix the speakers on my Asus laptop? I played with the settings and accidentally deleted some functions.

    original title: speakers on windows 7

    How to fix speakers on my Asus laptop. I played with the settings and accidentally deleted some features and I can't restore it to its original.

    Can you help me with this problem?

    Thank you in advance.

    The best

    YinNooy

    Use system restore to go back to an earlier date at the beginning of the problem.  To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore.  Click on the box that says show more restore points.

    I hope this helps.  Good luck.

  • Play with the Windows 7 color scheme will affect my TV on different entries or overall?

    Hello, I have a Samsung LED Tv connected to my PC. Asked me to change my color scheme I did. Play with the color scheme of Windows 7 will not affect my TV in any way other than the PC itself. I want to assure you that it don't mess with any setting on my TV or other inputs for my TV, like the brightness, color, etc.

    Hello

    Thanks for posting the request in the Microsoft community forums!

    The problem description, I understand to be aware if the Windows 7 mess with any settings on Samsung LED Tv. color correct me if I'm wrong.

    We look at this, it seems that the settings on Samsung LED Tv will not get affected by the arrangement of color of computer.

    We know if you need help with the Windows operating system. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

  • Play with the opacity or amount

    Hello everyone.

    For example: you have a layer within Photoshop, and you can play with the opacity, like 10% or 50% or 100%.

    Inside the hearing, inside Clip Rack or Rack effect, I would like to adjust the opacity or the amount for each effect. For example: adaptive noise reduction or DeHummer make 30%. The only place where I found this opacity or the amount is indispensable Sound Panel, inside the amount, from 0 to 10. Any other choice?

    Well, "Opacity" is not really a concept when it comes to audio, but each effect has a wide range of settings, you can do.  How they are labeled depends on the effect does.

    For example, on the of hummer, the closest thing to the opacity is the Gain setting - it is a digital quantity rather than a simple slider.  However, if you adjust the number (you can drag left and right to go downwards and upwards) that adjusts how snoring - the frequencies that have been selected - is reduced.

    Similarly, the Adaptive reduction of noise, the slider ' Reduce Noise by ' is probably the closest thing to the opacity control how much or little, the noise is reduced by.

    The problem with just using these two controls is however that other things can affect your sound - noise reduction, doing a too high percentage can give you a metallic sound as hearing eliminates also certain frequencies in the audio range.

    The Essentials Panel, as you have discovered, is a recent attempt to facilitate adjustments for no audio specialists.  However, as the reduction, for example, the RAW camera filter in Photoshop to a single setting.  It may be the best guess at what a typical user would want.

    As a basic indicator, HAND, for each effect controls will be things like the gain settings or as percentage but on other effects (such as reverb for example), there is a control that sets the balance between the original material and the effect generally call "wet dry mix.

    Anyway, as you can see, seemingly simple question gets you a what either by simple answer.  I would say that if you are going to use hearing is to work through some of the tutorials on the Adobe pages... with a little research you will usually find a section on the specific effects to use.

  • Vimeo can be played with the current configuration (tablets only presentation)

    I'm working on a site with configurations desktop, tablet or phone. I have a Vimeo video in all versions, my problem is in the presentation of the tablet. I have a message on the video who said: it can be played with the current configuration. Everything works fine (desktop PC and telephone) in the online site. I don't know what I need to make changes. Appreciate help with this. Thank you, Alan

    PS tried changing the Vimeo with a YouTube video, always get an error on the site online.

    It seems that it was not software based on the Web service.  I published the site from home tonight and everything works perfectly.

  • Question of selection with editable Spark DataGrid

    Hello world

    I'm evaluating new Spark DataGrid and I am having a very strange problem with the selection behavior in an editable instance.

    Here is my test application: http://www.playcalliope.com/flex/DataGridSelectionIssue.html (code here: https://gist.github.com/1129160)

    And here are the steps to reproduce the problem:

    1. Select the first cell in the upper left corner of the grid (the one with 'Gabriele');
    2. click it once more, the Editor appears;
    3. now, click on the cell just to the right (the one with "Genta").

    You should see that edition ends as he supposed to do, but the selection is placed on the third cell (the one with a 5 in it) on the one you clicked on. Play a bit with the grid, you will see that this is not the only case, but selection really behaves randomly.

    I use SDK 4.5.1.21328.

    I think that it is a very basic use case... I can't believe that this does not work, what don't get me?

    Thank you very much

    Gabriele Genta

    Message was edited to add the living example

    Your race in a bug known, https://bugs.adobe.com/jira/browse/SDK-30088.

    The bug will be fixed in the Mega version. To work around the bug, you can create a custom editor and delete the "dataGrid.validateNow ()"; call to DataGridEditor.save ().

    Here's how I modified your example to work around the bug:


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    minWidth = "955" = "600" minHeight
    backgroundColor = "#E7E7E7."
    creationComplete = "application1_creationCompleteHandler (event)" > "
       
           
       

       
       
            Import mx.collections.XMLListCollection;
    Import mx.events.FlexEvent;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
    {
    testGrid.dataProvider = new XMLListCollection (testData.item);
    }
    ]]>
       

       
       
           
               
                   
                        1
                        Gabriele
                        Genta
                        5
                        molto
                   

                   
                        10
                        Weill
                        Pallino
                        10
                        poco
                   

               

           

           
           
               
                   
                        Import mx.collections.ICollectionView;
    Import mx.collections.ISort;
                           
    public void save (): Boolean
    {
    If (! validate())

    Returns false;
                               
    newData:Object var = value;
    var property: String = column.dataField;
    Object: data var = data;
    var typeInfo:String = "";
    for each (var variable: XML in describeType (data) .variable)
    {
    If (property == [email protected] ())
    {
    typeInfo = [email protected] ();
    break;
    }
    }
                               
    If (typeInfo is "String")
    {
    If (!) (newData) is String))
    newData = newData.toString ();
    }
    ElseIf (typeInfo == 'As')
    {
    If (!) () newData is uint))
    newData = uint (newData);
    }
    ElseIf (typeInfo == 'int')
    {
    If (!) (newData) is int))
    newData = int (newData);
    }
    ElseIf (typeInfo == "Number")
    {
    If (!) (newData) is number))
    newData = Number (newData);
    }
    ElseIf (typeInfo == "Boolean")
    {
    If (!) (newData) is Boolean))
    {
    var strNewData:String = newData.toString ();
    If (strNewData)
    {
    newData = (strNewData.toLowerCase () == 'true')? true: false;
    }
    }
    }
                               
    If (property & data [property]! == newData)
    {
    If the data is sorted, disable sorting for published data.
    var sort: ISort = null;
    If (dataGrid.dataProvider ICollectionView)
    {
    var dataProvider:ICollectionView = ICollectionView (dataGrid.dataProvider);
    If (dataProvider.sort)
    {
    type = dataProvider.sort;
    dataProvider.sort = null;
    }
    }
                                   
    var oldData:Object = data [well];
    data [property] = newData;
    dataGrid.dataProvider.itemUpdated (data, property, oldData, newData);
                                   
    Restoration of the kind. The data will be not sorted due to this change.
    If (out)
    . Fate ICollectionView (dataGrid.dataProvider) = classification;
    }
                               
    Returns true;
    }
    ]]>
                                   
               
               
           
       
       
       
    Editable = "true" selectionMode = "single-cell".
    itemEditor = "{ClassFactory (MyDefaultEditor) new}" >
           
               
                   
                   
                   
                   
               

           

       

  • Bind a column to two fields in the spark DataGrid

    Hello

    IMED a spark datagrid that uses a GridItemRenderer with a RichText label display.

    the RichText column should display two or more fields of colors and sizes of diffrenet.

    How can I bind the column in two or more fields?

    any help would be great.

    Try changing

    lblData.text = data [column.dataField]

    TO

    lblData.textFlow = TextFlowUtil.importFromXML (XML (column.dataField));

    and also change the label function to wrap the back while

    While he will evaluate to valid XML

    HTH;

    Amy

  • Satellite A110 - no bass while playing with the mp3 player

    Hello...

    I want to play my mp3 - but there's that no only the heights of the bass is there. When I burn songs on CD and play on a hifi-system string - they are OK - but when I want to play with media player there is no bass. I took a (Cinch) cable and connect it to the stereo and there is the problem with the low...-channel stereo is o.k. - cable is correctly mounted.
    The mp3´s are not damaged... (When I burn an audio CD and play - the bass exists.) the RCA cable is OK - I checked it...

    Is it possible that the sound chip is damaged? In the settings audio are no failures indicated.

    more: I connected my mp3 player with Cinch cable on the system stereo with the same songs I ve got it on my laptop... impeccable acts...

    Greetings
    Silvia

    Hello

    I guess that the Toshiba Virtual sound utility has been pre-installed on this laptop.
    There you can change and set the audio settings for example: level trueBass.
    I think you should open this utility and if you n t know the option use simple help this utility
    You have to press F1 to launch the help document.

    PS: If you have connected the laptop to stereo and use the stereo settings you should try to disable the virtual sound utility on the laptop

  • Associating the play with the program file

    When you try to run MS Flight Simulator X Standard (with the two SP1 & SP2) since the Games Explorer in Vista Ultimate (32 bit) I get an error message to set an association of program in the control panel all Associations. As a matter of fact, all the games in my game Explorer display this message.

    I know how to define associations, I do not know what extensions of file (or files) to associate with what programs.

    I associated the extensions '.flt' and '.fssave' to program Microsoft Flight Simulator (followed by the little 'R' trademark symbol). I found in program files-> Microsoft-> MS Flight Simulator Games, it's the Simulator.exe flight. Yet I still get the error message. Shouldn't she have joined when I installed the program from the disk I bought?

    I have also used the disk to do a "Repair Installation", has not improved the situation.

    FZT,
    When you open Games Explorer and try to launch a game by double-clicking on the icon or clicking the play option in the task pane, the following error message may appear:
    This file does not have a program associated with it for performing this action. Create an association in the set Associations control panel.

    However, you can run the game using the shortcut on the start menu.

    This happens if the IsShortcut registry value for .lnk (shortcut) file is deleted in an attempt to hide the overlay icon in the shortcut. To resolve this problem, re-create the IsShortcut registry value.

    Method 1
    Download and apply the fix for the binding of the .lnk file available from several third-party online sites.  Search for "vista Explorer game associations."

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Method 2
    1. Click Start, type regedit.exe and press ENTER

    2. navigate to the following key:

    HKEY_CLASSES_ROOT\lnkfile
    3. in the right pane, create a string (REG_SZ) named IsShortcut value

    4. close the registry editor and restart Windows.

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk

    I hope this information is useful for your problem.  Let us know if you need help.
    Thank you

    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The problem starts just today when I opened my computer and started playing with the no sound

    So, basically, as the title says, my video games sounds is not recognized by my volume mixer. The problem started only today when I opened my computer and started to play with no sound. At first I thought that I had cut all the sounds but then I checked and nothing was cut and I also checked that my volume mixer didn't even have the game volume control bar to increase or decrease the sound of the video game. I also checked my device to update manager, but didn't so I get really worried about it, if you could help me that would be great.

    (PS: If you need information about my computer just ask in the comments and I'll tell you what you need to know.)

    Well, thanks for the time spent by only typing the answer, I really appreciate it, but I already solved... Just had to uninstall my audio driver from Device Manager and reinstall it. But now I have another problem, when I try to open any folder I gives me an error like this: "this file doesn't have any associated program that allows you to perform this action. "Install a program or if you have one, create an association in the-> default programs control panel. I also noticed that when I right click on it, it should say 'Open', but instead he said: "cmd" as the priority order.

    (PS: I know this issue is off-topic but see if you can help me with this one please.)

    PIC:

  • After you have uninstalled an editor audio wave cushion, my DVD stopped playing with the error: because there is a problem with the digital copy between your DVD drive decoder and video card protection.

    my dvd will not play after you have uninstalled an editor audio wave pad. Is there a way to fix my dvd without reinstalling the program? I received the following message, (Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD drive decoder and video card protection. Try to install a driver available for your video card).

    my dvd will not play after you have uninstalled an editor audio wave pad. Is there a way to fix my dvd without reinstalling the program? I received the following message, (Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD drive decoder and video card protection. Try to install a driver available for your video card).

    ================================================
    If the uninstallation of software caused the problem... it may be worth trying to
    do a system restore to a time before the software has been uninstalled:

    Windows 7 system restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/system-restore-frequently-asked-questions

Maybe you are looking for

  • Upgrading memory on Mac Mini (mid-2111)

    Following the instructions, I bought a slot (8 GB) memory.  I was told to just replace one of the existing homes (1 GB) and leaving the other in place, for a total of (9 GB).  After reading the information contained in my Mac mini booklet: "your Mac

  • Windows Vista Service Pack 2: Compatible blue screens

    Hello. I tried to debug my friends computer. He had regular blue screens of death. I analyzed the dump files and it turned out that he had bad memory in the first 2 crashes (it linked several times windows memory diagnostic tool and even swap ram slo

  • VISTA ICONS

    File icons and the program on my desktop and in Windows Explorer have a small symbol in the lower left corner.  Can be turned on and off?  In addition, what do the different symbols?

  • BlackBerry smartphones can not uninstall the Facebook app.

    On the storm, I downloaded and updated the Facebook several times. Unfortunately I never receive notifications (I know this isn't the fault of Facebook, BlackBerry). I am now trying to uninstall and remove this application but I can't work out how! I

  • The option to export CineForm disappeared!

    Hello. I'm a windows 8.1 user and usind first pro cc 2014. I export my videos usually go pro in cineform, but suddenly it just disappeared from the export Panel. It used to be under quick preset time but now it's not there, I've looked everywhere to