The itemRenderer CheckBox of Datagrid displays incorrect sometime.

The itemRenderer CheckBox of Datagrid displays incorrect
sometime.
A datagrid has a column:
<mx:DataGridColumn headerText="selectMe" editable="true"
dataField="_selected" itemRenderer="{new
ClassFactory(mx.controls.CheckBox)}"
rendererIsEditor="true" editorDataField="selected"/>
There are serveral records which have been get from database.
the records all are unchecked. after I checked some records , then
refresh the data from database, the checkBoxs will display
incorrect sometimes.
any suggestion?
thanks.

It occured frequently. What can I do?

Similar Messages

  • Find the itemRenderer components in Datagrid

    Hi,
    I have defined my itemRenderer for a DataGrid with different
    components like Checkbox, button etc according to the input.
    I would like to access the components from the application
    like dg.chkbox.
    Is it possible to do that??
    Thanks in advance...

    Hi John,
    I think u can not access directly
    .but through itemRollOver event of datagrid u can access the
    item renderer of particular column.
    I think It will help you.
    Megha

  • Reader after connecting the jcop31 card, ATR is displayed incorrectly.why?

    Reader after receiving theNXP jcop31 card, ATR is displayed incorrectly.But the other readers are ok.why?
    Edited by: Suwen on 2012-10-31 上午9:53

    Can you explain what is wrong with the ATR? What do you see? What would you expect?
    - Shane

  • Problem with Checkbox ItemRenderer in a DataGrid

    Hello Everyone,
    I'm using a datagrid with two columns, which is used as a data entry grid. The first column has a simple text input field and the 2nd column has a checkbox as an itemrenderer. On creationComplete event, I'm passing an arraycollection as the dataprovider for this datagrid. The arraycollection:
    <mx:ArrayCollection id="psAC">
            <mx:source>
                <mx:Array>
                    <mx:Object PaText="line1" PaCheckbox="0" />
                    <mx:Object PaText="line2" PaCheckbox="0" />
                    <mx:Object PaText="line3" PaCheckbox="1" />
                    <mx:Object PaText="line4" PaCheckbox="0" />
                    <mx:Object PaText="line5" PaCheckbox="0" />
                </mx:Array>
            </mx:source>
        </mx:ArrayCollection>
    There is a datagrid (dGa) in the main application. On click of this, a pop up window comes up which has the same datagrid layout(i.e, 2 columns). And this is where the data is entered. Here, if the user checks the check box, I have assigned a value of '1' for the 2nd column of the arraycollection. THis code(below) works fine.
    <datagrid in pop up window>
    <mx:DataGridColumn headerText="Best Possible Action?" textAlign="center" width="200" editable="false">
                                <mx:itemRenderer>
                                    <mx:Component>
                                       <mx:CheckBox>
                                            <mx:Script>
                                                    <![CDATA[
                                                         override public function set data(value:Object):void{
                                                             if(value.PaCheckbox == 1){
                                                                this.selected = true;
                                                            }else{
                                                                this.selected = false;
                                                    ]]>
                                                </mx:Script>
                                            <!--<mx:change>
                                                <![CDATA[
                                                    if(this.selected == true){
                                                         data.PaCheckbox = 1;
                                                     }else{
                                                         data.PaCheckbox = 0;
                                                ]]>
                                            </mx:change>-->
                                        </mx:CheckBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
    But I would also need to set the PaCheckbox value to 0 or 1, based on teh check condition of the check box. I tried using change event (commented in the code above). But there I get an error: Cannot access a property or method of a null object reference. I checekd in debug mode, there the data object is null! Can you please help me on how to pass back the values(0 o 1) to my arraycollection, based on the checkbox's status?
    Cheers,
    Deepak

    heyo,
    I solved it.....
    i was missing this line of code super.data = value; in the ovverriden function...Once we have this line, the data object will have teh field names and their values in it, which can be accessed on the change event...

  • Datagrid itemRenderer checkbox

    Hi,
    I have datagrid control in my application and I use itemRenderer to render some data received from webservice. Works just fine but I would like to disable changing state of checkbox. I am using checkbox renderer just to show data more user friendly and not that users can check and uncheck it. So how can I disable checking and unchecking (by user click interaction) my checkbox in datagrid?
    I my example column with dataField "IsAlive" is the one rendered by CheckBox component.
    <mx:DataGrid id="lstAllPushes" left="10" right="10" top="10" bottom="60">
    <mx:columns>
    <mx:DataGridColumn headerText="ID" dataField="ID"/>
    <mx:DataGridColumn headerText="Start date" dataField="DateInserted"/>
    <mx:DataGridColumn headerText="Expiration date" dataField="DateExpiration"/>
    <mx:DataGridColumn headerText="Alive" dataField="IsAlive" itemRenderer="mx.controls.CheckBox"/>
    </mx:columns>
    </mx:DataGrid>
    Thx in advance.

    Try this:
    <mx:DataGridColumn headerText="Alive" dataField="IsAlive" >
         <mx:itemRenderer>
              <mx:Component>
                   <mx:CheckBox enabled="false"/>
              </mx:Component>
         </mx:itemRenderer>
    </mx:DataGridColumn>

  • TS2167 I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    Just in-case anyone els runs into this, I figured it out... I was working from my hotel and apperantly the fire wall was not allowing anything to uplaod, but I wasn't getting an error message from iweb, it would say that everything was published succesfully even though it wasn't. Once I went home and used my connection eveything worked fine.

  • The song titles are displayed incorrectly, how do I fix this?

    Ever since an update of itunes a couple of months ago, the titles have been displayed incorrectly in my library. I listen to a lot of Chinese, Korean, and Japanese music and after the update the information turned into squares. I went online and tried the much given solution of converting the id3 tags. This resulted in all my songs (even the english ones) turning to Chinese script when I reversed unicode, which was solved by reversing it again. However after trying all the id3 versions I am now left with a part of my songs being displayed as ?????? and with the other, largest part having the correct names but with the symbol Ƞ spread throughout the titles, which is annoying to say the least.
    Other programmes on my computer display the different scripts just fine, and I have Japanese and Korean installed so as to be able to write it. The songs are also still displayed correctly if I acces them in their folders.
    I am kind of losing hope after trying to find a solution on the internet for a while now, and have even re-installed itunes completely, to no avail.
    If anyone has any suggestions or possible solutions, I'd be very grateful.

    Hi Treenr3,
    Sounds like you have been on the right track with regard to troubleshooting this issue. It may be worth going over the font troubleshooting in the following article, just to double check (it refers to a previous version of iTunes, but the troubleshooting steps should be similar).
    iTunes 9: Font text is incoherent or appears in a different language
    http://support.apple.com/kb/TS3042
    It may also be worth trying some isolation troubleshooting in new test user account with just a couple of the tracks that are having issues to see if it persists.
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    Cheers,
    - Brenden

  • Font problem - special characters sometimes displayed incorrectly

    I have a problem with the fonts installed on my computer: With some of them special characters (mainly german umlauts) get replaced by other fairly random symbols. My first guess was broken fonts, but the behaviour is completely inconsistent: In some apps they are displayed correctly, in some not, sometimes it even changes within one app:
    Screenshot, wrong symbols marked red, correct symbols marked green.
    Note that Exaile consistently displays them wrongly, while Pidgin does alright in the buddy list but screws up in the conversation window [edit: See below] and Audacious behaves differently even within one window! Adding to this the behaviour changes depending on the font. Most fonts are alright (so far all default fonts are, but not all installed later (manually or via pacman) are faulty), within the faulty ones it depends on the font which apps work and which don't, e.g. Bauhaus will work perfectly except that the Pidgin conversations can't display '€', Santana works for Audacious, but fails completely in Pidgin and Exaile, while Petita (the one from the screenshot) is all over the place. In some cases one font package contains different weights of the same font and those will behave completely differently.
    All kinds of text editors work fine with all kinds of fonts, so do all file managers I tested.
    Any idea as to what might be the source of this problem? How can one app interpret one ttf-file differently depending on where it uses it?
    [edit: I was mistaken: Pidgin screws up consistently in all it's windows. It's just inconsistent with other apps: In the screenshot for example 'ü' in Pidgin works, 'ä' and 'ö' don't, in Exaile all three don't. This is insane!]
    Last edited by lastchancetosee (2011-01-15 12:21:21)

    I downloaded the Petita font by Manfred Klein and checked the mapping with Fontforge.  Fontforge is reporting many, many errors with the mapping to Unicode, such as,
    The glyph named breve is mapped to U+0005.
    But its name indicates it should be mapped to U+02D8.
    Most likely, the fonts with the errors were designed for a different operating system.
    Last edited by thisoldman (2011-01-15 16:06:49)

  • ItemRenderer in a datagrid column   setStyle() does not do anything to the appearance

    I have a custom ItemRenderer in a datagrid column, however
    the setStyle() does not do anything to the appearance. when it is
    called. Any ideas?
    <mx:DataGridColumn dataField="area" width="50"
    headerText="Area">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text>
    <mx:Script>
    <![CDATA[
    override public function set data( value:Object ) : void {
    super.data = value;
    setStyle("Color",0xff0000);
    if(data.area == 'G'){
    setStyle("backgroundColor",0xff0000);
    }else{
    setStyle("backgroundColor",0xff0000);
    ]]>
    </mx:Script>
    </mx:Text>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

    Your renderer code looks a little strange. This works, and
    may get you started:

  • I have a macbook connected to LED cinema display. The display started to flicker. The display turns black for a second or two. Sometimes I restart macbook and display. Sometimes it helps.

    I have a macbook connected to LED cinema display. The display started to flicker. The display turns black for a second or two. Sometimes I restart macbook and display. Sometimes it helps.

    same issue, either your wiring or display itself is going bad. for me, it was the display but luckily still under warranty

  • Problems with the images displaying incorrectly

    I have done a couple of installs before this of the new Apex 4 deployed on weblogic 10.3.3 with no problems but this one has "stuck a spanner in the works". I have also looked through the forums and was unable to find a solution to the problem I am seeing. I am about to start an SR if no one is able to help on the forums.
    This is my problem;
    I am able to view the individual images in the images directory via the http for e.g. http://hostname.domain:7001/apex/i/date.gif and this displays correctly.
    I am not able to view the http://hostname.domain:7001/apex/f?p=4550:1:2874725903020187 images as they are not displaying.
    In the troubleshooting section of the install guide it mentions;
    A.4 Images Displaying Incorrectly in Oracle Application Express
    If images in Oracle Application Express do not display correctly, you may have more than one definition of the /i/ alias. To address this issue:
    If possible, rename the first instance of /i/ to a different alias name.
    Alternatively, copy the images from the ORACLE_HOME\apex\images directory to the directory defined by the first /i/ alias.
    ** Firstly how do I "rename the first instance of /i/" (how do I find this out?)
    ** How do I "Alternatively, copy the images from the ORACLE_HOME\apex\images directory to the directory defined by the first /i/ alias".
    Thanks to all that reply.
    If any more detail is required please just ask.

    Hi,
    Url where you see image should be
    "http://hostname.domain:7001/i/date.gif"So /i/ should be in server root.
    Sorry , I'm not familiar Apex Listener and those servers you can use with it.
    It might good idea to post question to Apex Listener forum and give all details about server, database and Apex version
    ORDS, SODA & JSON in the Database
    Regards,
    Jari

  • LifeCycle Form Server :- My form is rendering as pdf in the browser  without displaying data sometim

    LifeCycle Form Server :- My form is rendering as pdf in the browser without displaying data sometimes within data fields, and at other times it will display data. The form consistently displays data when rendered in HTML.
    We display the forms in a browser either HTML or PDF format based on the user selection. But the behavior of PDF format is not consistent. Sometimes it renders properly and sometimes the form renders without data.
    Dose any one experienced this issue?
    Any help would be greatly appreciated.
    Thanks in advance,
    RK

    I have been seeing the same issue, but haven't been able to find a fix for it yet. So any info would be appreciated here too.
    Thanks

  • In the mp3 files are displayed incorrectly Russian tags!

    Hello! In the mp3 files are displayed incorrectly Russian tags! As confirmation of sending you a screenshot! What to do? http://fastpic.ru/view/65/2015/0401/94da06b63b4f615fa249661f188a4ea3.png.html

    Hi Treenr3,
    Sounds like you have been on the right track with regard to troubleshooting this issue. It may be worth going over the font troubleshooting in the following article, just to double check (it refers to a previous version of iTunes, but the troubleshooting steps should be similar).
    iTunes 9: Font text is incoherent or appears in a different language
    http://support.apple.com/kb/TS3042
    It may also be worth trying some isolation troubleshooting in new test user account with just a couple of the tracks that are having issues to see if it persists.
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    Cheers,
    - Brenden

  • I am having trouble with the calendar displaying incorrect dates and times

    I am currently receiving calendar invites that i know are displaying incorrectly in my calendar and i am unsure how to fix this.

    Yes its all correct. I have just discovered that a separate calendar was set up with incorrect settings from the originator. I have checked all my settings and I'm good to go. thanks for your response

  • The window title bar displays incorrectly after publishing a flash file.  Captivate 4

    When I open the .htm file after using the Flash option to publish, the wrong title displays in the title bar at the top of Internet Explorer's window; instead it displays a former file name.  I was told that the window name is determined by the field located here: File> Document Info> Project Name; however, this is not the case on my PC.  My coworker is able to publish it correctly, but I am not.  The first picture below is the IE title bar and the second is where (I think) that title bar pulls from, Project Name.  Please notice that mine differ.  Any suggestions?

    I've run into this issue in CP4 as well though I've never been sure why it happens. It looks like you're opening the swf through a browser to so, for want of a solution, the easiest workaround is the edit the html file.
    open it in a text editor such as Notepad.
    Five or six lines down you'll find the title element which defines the title as it will display in your browser titlebar:  <title>This text is the title that displays in your browser title bar</title>
    Just change the text the the title you want and save the html file.
    If you go with this solution, I suggest that when you are publishing the project again you deselect the option "Export HTML" in the publish wondow. Otherwise you will have to edit your html file each time you publish.
    Hope this helps.
    Niamh

Maybe you are looking for

  • Can I install a SATA drive in Mirror Drive Door G4?

    I am looking at a Seagate 500 GB SATA drive at a great price at MWave ($109.) but see that SATA may require a different cable connector from the IDEs that I normally use in my box. Can I buy some kind of adaptor cable, or do I have to get a card of s

  • Implementing Dynamic Styles for Popups based on Query

    I have a page with multiple report regions which are individually displayed depending upon values assigned to variables via a search page. On the resulting report region, I display the results of my SQL query as text, text fields, select lists, texta

  • Uk Itunes is apple TV a joke then?

    Considering apple TV is designed to play movies and TV progs downloaded from i Tunes; It has been specifically made as a US box only. Do not Buy this in the UK its redundant before you even start coz no movies or TV programmes are available to us. A

  • Iphone syncing in PSE 7

    Hi there - this is my first post so forgive me if I have put this in the wrong place ... I have just invested in an iphone 3GS, and have been using PSE for a while, and am now on PSE 7.0.  I would like to sync my PSE albums to my iphone.  I can selec

  • Questions re using Terminal

    A couple of quick questions.  If I have to reference a file name with spaces in it, e.g. "this file.wav" how do I account for the space so that it is read as one item rather than "this" and "file.wav"? How to I move to the left without deleting every