Checked checkboxes repeat when scrolling in a datagrid control

I'm having some trouble with checkboxes that I placed as a column in a datagrid. When there is no number of lines with scrollbars in the grid is not necessary to see, everything behaves very well. However, if I have to scroll down to see all the lines, then the weird stuff starts. If I check one of the boxes and then scroll down, as soon as the box is out of sight, the next box that scrolls upwards will be checked. This happens regardless of the number of boxes is verified and unverified. Does anyone have an idea why this is happening? Thanks in advance for any help.

Here is my code:

< mx:DataGrid id = "dg" width = "344" height = "211" dataProvider = "{getUsers.lastResult.users.person}" itemClick = "calcNum (1);" ' > "
< mx:columns >
< mx:DataGridColumn headerText = "" dataField = "inclusive" width = "30" > "
< mx:itemRenderer >
< mx:Component >
< mx:Canvas >
< mx:CheckBox id = 'inc' width = '20' x '2' = y = "2" click = "data.included = inc.selected;" "/ >
< / mx:Canvas >
< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >
< mx:DataGridColumn headerText = "Name" dataField = "name" / >
< / mx:columns >
< / mx:DataGrid >

Well, I solved the problem. Missed me selected = "{data.included}" in the CheckBox tag. " Everything works fine now.

Tags: Flex

Similar Questions

  • ItemEditor valueCommit when editing in a datagrid control spark

    I'm trying to get round head such things when editing in a DataGrid ItemEditor spark but having problems

    I tried to put a flag in the data provider, if something has changed. but validating the value isn't going to get fired when the user changes a value:

    "< GridColumn width ="140"headerText ="Margin (off)"headerText.editMode =" Margin (montage) "dataField ="margin"editable ="false"editable.editMode =" true ">
    < itemEditor >
    < fx:Component >
    < DefaultGridItemEditor >
    < valueCommit >
    <! [CDATA]
    this.data.isModifiedClientSide = 1;
    []] >
    < / valueCommit >
    < / DefaultGridItemEditor >
    < / fx:Component >
    < / itemEditor >

    < / GridColumn >

    What do you think?

    valueCommit isn't a bubbling event, so you probably need to listen to the specific element within the itemEditor that captures text entry.

  • Different slide when inserting in the datagrid control.

    Hi all

    I imagined other interesting things. Is it possible to enable drag / move to top 10 lines in datagrid?

    Hello

    I found the solution. listnen to the events of early slide, of more than 10 index points, add Event.stopImmediatePropagation.

  • DataGrid with multiple check boxes works not when scroll vertically

    Hello

    I need a help in the coding of the flex, I'm a list of countries where several checkboxes in a datagrid control. Like anyone in a datagrid, I added the vertical scroll bar appears to show all the items in the datagrid with the boxes in front of each item. Now I select the item by checking the boxes I scroll in the datagrid my selection not get selected. I need my selected check box remains selected even I scroll to the bottom of the data grid upwards or downwards. Is there any solution for this? or is it the bug in flex. My Code is as follows

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"> "

    < mx:ArrayCollection id = 'people' >

    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >
    < mx:Object >
    < Mx:name > CBA < / mx:name >
    Senior Software Engineer < mx:title > < / mx:title >
    < mx:description > to work as a developer SR. < / mx:description >
    < / mx:Object >

    < / mx:ArrayCollection >
    < mx:Box height = "100%" width = "100%" showEffect = "Bland" styleName = "padBox" direction = "horizontal" verticalScrollPolicy = 'auto' >

    < mx:DataGrid allowMultipleSelection = "true" id = "dg_disk" dataProvider = "{people}" height = "100%" width = "100%" selectedIndex = "0" x = "50" y = "50" >
    < mx:columns >
    < mx:DataGridColumn dataField = "name" id = "empname" headerText = "EmpName" / >
    < mx:DataGridColumn dataField = "title" id = "title" headerText = "Title" / >
    < mx:DataGridColumn dataField = "description" id = "desc" headerText = "Description" / >
    < mx:DataGridColumn dataField = "selected" id = "selected" headerText = "Select" width = "150" >

    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox horizontalAlign = "center" >
    < mx:CheckBox id = selected = "{data.titile"ch_box"}" / > "

    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >
    < / mx:columns >

    < / mx:DataGrid >

    < / mx:Box >
    < / mx:Application >

    Add the data field selected in your Arraycollection collection.


        ABC
        Senior Software Engineer
        Working as a developer SR.
        0

    And are due to changes in the control check box.


                  
                       
                       
                            
                               
                              
                           

                       

                     

                   

    Thank you and best regards,
    ......................................................................................... ..
    POOJA Kuber | [email protected] | www.infocepts.com

    .......................................................................................... .

  • Fuzzy letters on websites when scrolling in Firefox 19 (with either smooth scrolling active / disabled)

    Hello

    Recently, I updated to Firefox 19, and since I had some problems when scrolling on Web sites: some lines/letters fade.
    I did some research online and found a trick to disable smooth scrolling, so I only have restarted Firefox, but the issue is still not resolved.
    I have not had this problem until the recent upgrade.
    Is this a known issue? Is there a solution to this?
    If no, how are we going to go back to the previous version of Firefox, I can only find the download links to the latest version...

    Thank you
    Lars

    Hello Santuzzo, try turning off hardware acceleration and check again.

    Thank you

  • Firefox 5: distortion when scrolling on web pages. appearance Wavey

    There is distortion when scrolling on all webpages using Firefox 5. It doesn't matter how fast or slow scrolling, screen becomes wavey to stop scrolling. I uninstalled and reinstalled Firefox and did not help. This happens not using Safari or in documents or spreadsheets open outside of the Firefox browser.

    Its best to take a Screenshot of your toolbars before you run the following suggestion.

    Launch Firefox in Mode safe mode by holding the SHIFT key while starting Firefox-> window Mode safe if poster-> place checkmark on the 2nd option "Reset Toolbars and of orders"-> click "make changes and restart".

    Check and tell if its working.

  • Repeat the questions of character: will not repeat when maintained key (even after change of repeat speed & delay at the fastest)

    When I type characters (as well as the arrow keys and backspace) etc they will not repeat when the button is kept pressed and you must wait a few seconds before being able to repeat a character or go back and delete a mistake!  This has been a problem since I accidentally leaned on a button and he kept extensible - a message box emerged by asking (I don't remember verbatum what he said) if I wanted to stop this does not happen - and in my drowsy State, I felt just OK!  I disappeared in the 'control panel' and changed the character of repetition and time short and fast many times and it never changes nothing!  I noticed that when I connect to my computer the character repeat works normally.  I'd appreciate any help because it is frustrating and annoying say the least!  Thank you, Danette

    Hello

    1. have you made changes on the computer recently?

     
    Please check if you face the same problem when recording in safe mode. It is a possibility that one of the non-Microsoft application or driver is causing this issue.
     
    Step 1.
    a. restart your computer.
    b. when the computer starts, you will see your computer hardware are listed. When you see this information tap the F8 on your keyboard key repeatedly until you are presented with the screen Windows 7 Advanced Startup Options.
    c. using the arrow keys, select the desired option of Mode without failure.
    d. press the Enter key on your keyboard to start in safe mode of Windows 7.
    e. when Windows starts, you will be at a typical logon screen. Connect to your computer and Windows 7 goes into safe mode.
    f. do whatever tasks you need and when you are done, reboot to return to normal mode.
     
    Step 2.
    If it works fine in safe mode try performing a clean boot in order to find the cause root.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
     
    I hope this helps.
  • Heroes of slideshow on the home page is unlocked, but does not move vertically another w content when scrolling

    I created a slide show of hero on the homepage. It is "released", but he's not vertically moving with the rest of the content when scrolling up and down. It stays in place even and the other content on the page is scrolled correctly.

    Hi Katie,

    I checked your file and I can see that the slideshow is pinned. Please refer to the following screenshot: http://prntscr.com/2jfuta

    Please have this marking and the problem will be solved.

    See you soon!

    Aish

  • How to scroll in a datagrid without scrolling so the browser window

    Hello

    I have a datagrid with a vertical scroll bar. When the mouse is on the datagrid control, I would like to use the mouse wheel to scroll through its contents. However when I do this the main browser (which also has a vertical scroll bar) scrolls as well. How can I prevent the main scrolling browser window when the mouse is on the data grid so that only the contents of the DataGrid scroll?

    Thank you

    I found a javascript code that solves this problem. Credit for the code must apply to the person who wrote the excellent article at the following link: http://www.switchonthecode.com/tutorials/javascript-tutorial-the-scroll-wheel
    If you read the code below should make sense.

    In this article, I used hookEvent and CancelEvent functions. In my particular case, I include the SWF object in a JSP page using javascript code. Once the SWF is loaded, I added the following line of code:

    hookEvent ('my_swf_id', 'mousewheel', handleMouseWheel);

    When handleMouseWheel is defined as follows:

    function handleMouseWheel (e)
    {
    If (document.getElementById ("my_swf_id"))
    {
    document.getElementById("my_swf_id").focus ();
    }
    CancelEvent (e) return; It's the key to the solution...
    }

    When the mouse is over the data grid in the SWF file I can use the mouse wheel to scroll its contents without the main scrolling browser window at the same time.

    Thanks to everyone who took the time to post their ideas, it was appreciated.

  • get an echo (repeat) when I record

    IMac 2.66 Ghz processor intel core duo

    4 GB memory

    Yosemite 10.10.5 os

    just downloaded the new upgrade to 10.2.4 logic

    has been slow loading and acting weird

    just tried to record an audio track, but there is an echo or repeat when I played my instrument as if I had a plugin active echo delay

    There are no plugins active on this track

    Would it because I need to upgrade to El Capitan?

    -That's just your comments? Cut your speakers and repeat the test or headphones and save another test.

    I suspect you have something is misconfigured, you shouldn't have played live sound when you get a microphone that is recording unless I'm badly understand something?

  • Get horizontal wrinkles when scrolling down in the active window in firefox.

    Using the latest version of Firefox on a Dell XPS 630i, Win 7 Pro. Use of a HP w2338h monitor set in 1620 x 1050 at 60 Hz. Graphics card is NVIDIA GeForce GTS 240. Logitech Anywhere Mouse MX.

    When scrolling down I get lines on the screen when I type text. When I keep scrolling, it goes but lower reappears on the screen. It; s quick and barely noticeable, but just enough to be a pain.

    Any help would be appreciated.

    Thanks cor - el. That seems to have done the trick!

  • Web page of Google News jumps when scrolling

    Google news Web page jumps when scrolling down.
    This is not the case when you use google chrome.

    Thanks for your help. It was this add-on that was the problem.
    Flash Video Downloader - Youtube Downloader 3.5.4
    Thanks again for your help
    Barry

  • When scrolling I get this strange undulating thing that is hard to watch. It seems that the waves over a barbecue or heat waves rises above the pavement on a hot day. Someone out there has this problem?

    The 'heat wave' on the screen when scrolling. It's driving me crazy!

    Try turning off hardware acceleration.

    • Firefox > Preferences > advanced > General > Browsing: "use hardware acceleration when available.
  • L460 keys repeat when pressed for 3 seconds

    When I press a button for at least 3 seconds, it repeats until I have tap again, as described in

    E460 keys repeat when pressed for 3 seconds

    There will be a Bios fix for the L460/L560 series as well? The Bug is quite annoying...

    In response to the client reported that after holding a key for 3 + seconds letter, the letter will continue to repeat on the screen until the key once again, while pressing results in solutions of numbers 2 arrow keys, 4, 6 or 8 entering E460, E560 and L460 ThinkPad, Lenovo provided through update BIOS for these systems.

    L460 BIOS v1.15 released 05/24/16 can be downloaded here: http://support.lenovo.com/us/en/products/Laptops-and-netbooks/ThinkPad-L-Series-laptops/ThinkPad-L46...

    E460 and BIOS E560 v1.17 released 28/04/16 can be downloaded here: http://support.lenovo.com/us/en/products/Laptops-and-netbooks/ThinkPad-Edge-laptops/ThinkPad-E560/do...

    Thank you

  • How can I disable the mini-bar of scrolling that appears randomly when scrolling?

    ProBook 4310 s, Windows 7

    When scrolling, a small scrollbox appears randomly and that he's taking me away from the page I'm scrolling on.  This happens when I use the small plate square to scroll.  It's the only 'function' most irritating of any computer I have ever owned or used, and I wish I could turn it off.  How to do that please?

    Hi Taxlady:

    I found the solution myself.  You have to start HP Support Assistant and choose the resolution of problems (the second of the four options, my copy is in Swedish so it may not be called Problem Solving but something similar).  Then choose the devices, one on the middle of the bottom row and the following Configuration for mouse and .  Here, you will get a new window with a menu five point on the left.  These elements will be something like:

    Overview, scroll, Point, buttons and other things I don't even understand Swedish for!

    Choose scrolling, and down there, you have a finger to scroll.  Disable horizontal and vertical scrolling, and your problems are over.

Maybe you are looking for