ItemFocusOut called twice when you are using datagrid

Have you ever encountered itemFocusOut called twice when you
are using datagrid. I use this event to check the text that has
been entered.
Also when I use regex expressions
if((event.itemRenderer as TextInput).text.search(new
RegExp(/.*\..*\./)) != -1){
in the itemFocusOut method and someone enters
234.34.234
I get an error
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at
mx.controls::DataGrid/destroyItemEditor()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\controls\DataGrid.as:4000]
at
mx.controls::DataGrid/itemEditorItemEditEndHandler()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\controls\DataGrid.as:4897]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]
at
mx.controls::DataGrid/endEdit()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ontrols\DataGrid.as:4041]
at
mx.controls::DataGrid/mouseDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\controls\DataGrid.as:4296]
Could some be so kind as shed some light on this
situation

I've worked around the error. I had something to do with the
fact that the event was being twice and I worked my handling code
around to avoid the error. However the problem with the event still
remains. I think it is because the data it in the grid is being
refreshed intentially after the code in the itemFocusOut is called
that is cause the second event to fire.

Similar Messages

  • How do you know when you are using the internet?

    If I am using an app that requries internet, and I press the middle button to get out of it am I still using part of my data plan?

    While you are using the app if you are not on WiFi you are using the internet. If the app is one of the few that can run in the background you need to close it to stop it from using your data plan. Double click the home (middle) button, hold down your finger on the app, when you see a red circle with a dashed white line next to the app icon tap it, press the home button.

  • In v4 why did you flip the context menu for open in new tab/window. Sucks when you are used to the other way

    I downgraded to 3.x because when I browse I have many new open windows (I have been using FF for so long I automatically select the second option). Seems stupid to change the order of the context menu when it has been the other way forever.
    Please change it back or at least have the order as an option.

    So the answer from TonyE was "That was an intentional change to promote the use of tabbed browsing." (See http://support.mozilla.com/en-US/questions/791244)
    And there is an option to use a menu editor to put them back detailed in that thread as well. The problem, of course, is that you need to perform a complex customization to every computer on which you use Firefox in order to fix a problem that should never have been created, never made it through beta, and that the developers won't fix because they believe that they are right.
    Frankly, eventually you get used to it. But in the mean time, they have annoyed, and in many cases pissed-off a large segment of their users for no reason at all.

  • Do you send the real traffic or a copy when you are using the CWS service and where are the datacenters located ?

    Hi, when you redirect traffic to the CWS service for scanning, do you redirect the real traffic this way or is it a mirrored copy of the traffic ?
    If all traffic is redirected to the Cloud, where are the Cisco datacenters located. Good to know I guess, since you don't want to avoid to much of latency
    /Jan

    Toddy, see [http://news.cnet.com/8301-30685_3-20004620-264.html?tag=mncol;txt]

  • How can you match an existing color when you are using the Hue/Saturation adjustment layer?

    Hi, I have a student who wants to match the color of a new layer to the exact color of an existing layer. He is using an adjustment layer to "eyeball" the color match, but is there a way to ensure that the match is perfect?

    Depends, John.
    If you're able to create a reasonable selection via Color Range, feathered masking, etc, then by matching one specific color, you'll also be correcting for that entire range of hue. It might have been needed anyway...or you use a color filter to correct the whole image, if it's needed.
    As we all know, each image presents its own specific challenges and solutions.

  • How do you view your ipod when you are using the remote?

    Every once in a while me and my freinds will be hanging out, and im sure youve all experienced the "oh let me show you this song!!". since we are far away and the ipod is plugged into the computer, the remote is the best option, but how can i get the ipod to even show up on the remote menu, or even to just become a part of the library?
    thank you!

    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414
    If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808

  • How can you manage data usage when cellular data is off, but you are using WiFi where your WiFi provider charges for data use?

    I spend quite a few months each year in Canada where I use a Telus Cellular Hub device which is also my WiFi Router.  My iPhone 5 has Cellular Data set to "Off" which insures I won't be charged via my Verizon Wireless Service Provider for charges while in Canada.  Trouble is Telus, Rogers and all the Canadian Internet Providers charge for all Data going through their Systems.  Again, My Cellular Data on the iPhone 5 is turned off, but I use WiFi for such things as checking the Weather, or FaceBook, or searching the Web. 
    I believe that things may be happening in the background from various Apps that use quite a lot of Data.  It could be that iCloud is part of the issue with things being backed up automatically.  It also could be that Apps like AP or other News Apps are sending large amounts of Data in the photos associated with their New Stories, etc.  I typically turn off the App Store "Updates" such that they don't automatically load.  The FaceBook works now posted videos play when you are just scrolling through the News Feed. 
    I have been trying to fine an article somewhere which focuses on this specific problem but unfortunately many if not most articles are about folks worried about using Cellular Data while in a WiFi environment when their Cellular Data is turned on. 
    Does anyone know of a fairly comprehensive article about what settings on which Apps might reduce the Data Usage when Cellular Data is turned "Off" but you are going through a Service Provider who charges for all Data Accessed even when you are using WiFi?

    Thanks for your comments, it is clear you understand my plight.  The trouble is fully understanding what Apps and App Features are transferring data in the background any time you happen to turn WiFi to on (even if you have had it off most of the day or night).  Obviously things like Location Services can constantly be sending and receiving data from my iPhone without any action on my part.  Also if you have things like photo backup on the iCloud then each time you take a photo you are sending a copy out.  All App Updates if set to Automatic also can add up to quite a bit of Data.  Reading the News on AP or scrolling through FB News Feed is actually adding up to a lot of Data.  There could be other culprits that I am not even thinking of.  I don't want to turn Apps like Find My Phone off or turn iCloud off due to loosing the value of such a program entirely.  Again thanks for your quick response. 

  • Why does the IPhone 4 get really hot, when you are making a phone call??

    I can't seem to find the answer to this riddle . why does the iPhone 4 get really hot when you are making phone calls or when using face Time ??

    It doesn't.
    There must be an issue with your iphone.
    Have you tried reset?  Restore?
    Have you made an appointment at the genius bar to have them look at it?

  • When you are pulling music from a hard drive and it says music can not be found, is there a way to stop it from doing that every time I play music from my computer? It used to find all music now it only finds 1 song at a time

    When pulling music from a harddrive and it say music can not be found, is there a way to stop this from happening every time I play music on my computer? It used to find all music when serching for song but now it only finds 1 at a time. I have over 2000 songs so I can't go through this every time.

    1) However I do not want to move my itunes Music onto the flash drive, only my Movies, and want to keep my music on my hard drive.
    Is this possible?
    Yes
    2) Do the MacBook Air's not have a separate program other than itunes that can play movies? If so, is there a program I can get to solve this problem? I went onto the App Store to see if there was something I could download, but all the apps were for creating DVD's, not simply playing them.
    If you can play the movies in iTunes, you should be able to open the movie files using Quicktime, which should already be on your system.  If you have already transferred the files to your flash drive, open the flash drive in Finder, and hold control when you click on the movie file (or right click if you have the enabled) and select Open With Quicktime Player.  This should play the movie directly from the flash drive. 
    If you want to set all .m4v files to open with Quicktime by just double clicking on the file, you can follow the steps here: http://www.tech-recipes.com/rx/2573/os_x_how_to_change_default_application_to_op en_file_type/
    3) If 1. & 2. questions are solvable, will it then be safe to delete the movies from my itunes?
    You can move the TV shows to your flash drive by dragging them from the iTunes window to your flash drive in Finder or the flash drive icon on the desktop.  When you are sure everything is transferred over to your external device, you can delete the movie from iTunes.  I recommend playing the videos from the flash drive first before deleting them in iTunes. 
    To delete the videos from iTunes, you can highlight them and press the delete key on your keyboard.  In the next prompt, you would want to move it to the trash so that it is deleted from your internal hard drive.  
    I hope that helps!

  • When ı update firefox 7 to 8 I can not enter the facebook site, when I try it, it says Uyumsuz bir internet tarayıcısı kullanıyorsun. ( it means in english : you are using an unsuportted web browser) how I can solve this problem?

    when ı update firefox 7 to 8 I can not enter the facebook site, when I try it, it says Uyumsuz bir internet tarayıcısı kullanıyorsun. ( it means in english : you are using an unsuportted web browser) how I can solve this problem?

    Step by step, how did you arrive at seeing this agreement?

  • When I try to open the EOS digital solution disk ver 24.1 for my new Canon Rebel T3i camera on my Mac 10.5.8 a notice "this software is not supported by the CPU you are using" comes up.  What gives?

    When I try to open the EOS digital solution disk ver 24.1 for my new Canon Rebel T3i camera on my Mac 10.5.8 a notice "this software is not supported by the CPU you are using" comes up.   Do I need this software?  Can I just download the pictures to my Mac without using the Canon software?

    When I try to open the EOS digital solution disk ver 24.1 for my new Canon Rebel T3i camera on my Mac 10.5.8 a notice "this software is not supported by the CPU you are using" comes up
    You need to contact Canon - or read the software specs - it sounds like the software you got form them is not supported by your computer
    Do I need this software?
    Probably not - exactly what about it do you want?
    Can I just download the pictures to my Mac without using the Canon software?
    Probably - if you are shooting JPEG - launch iPhoto and in the iPhoto preferences set action when a camera is connected to launch iPhoto and connect your camera - iPhoto should launch and you should be able to import
    Some cameras need to be set to mass storage mode - read your camera manual for details and procedures
    If you are using RAW then your camera needs to be on this list and you need the versions of software noted - http://support.apple.com/kb/HT4757 - for older OS versions you can use google to find the list of supported cameras
    LN

  • Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them

    HI
    i am keep seeing this message in ulsviewer of splogs in a webfront end server
    Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:  
    at Microsoft.SharePoint.SPWeb.get_Exists()   
    at Microsoft.SharePoint.WebControls.CssLink.OnLoad(EventArgs e)   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest()   
    at System.Web.UI.Page.ProcessRequest(HttpContext context)   
    at ASP._layouts_icc_icc_scan_view_aspx.ProcessRequest(HttpContext context)   
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   
    at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)   
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)   
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    adil

    Hi,
    Your SPweb object is not disposed properly.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3a25eb86-8415-4053-b319-9dd84a1fd71f/detected-use-of-sprequest-for-previously-closed-spweb-object-please-close-spweb-objects-when-you?forum=sharepointdevelopmentprevious
    http://sharepoint.stackexchange.com/questions/50793/detected-use-of-sprequest-for-previously-closed-spweb-object-after-spquery
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • When I try to load Indesign, an error message appears: "the exploitation system you are using is no longer taking responsibility with Indesign". What can I do to load the software?

    When I try to load Indesign, an error message appears: "the exploitation system you are using is no longer taking responsibility with Indesign". What can I do to load the software?

    Do you have a license for InDesign?

  • Criteria or check when we see the error "You are using an older version of firefox"

    Criteria or check when we see the error "You are using an older version of firefox that is no longer supported and may be insecure" on sites like facebook. Currently firefox 8.0 does not give this error but 3.5.4 does. What is the check performed by sites for this error?

    Most web sites use the User Agent, which is sent in the header of the request for delivering the page. The user agent of the browser you used to post here is <br />
    Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0

  • I bought the iPhone 4 user and when you are upgrading to the new system  ios7 I have a problem activation lock note that I do not know what is the ID Apple and The password because the phone used?

    I bought the iPhone 4 user and when you are upgrading to the new system  ios7 I have a problem activation lock note that I do not know what is the ID Apple and The password because the phone used?
    please help my what can i do?
    IMEI : 012658006380001

    Welcome to the Apple community Kobra.
    Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.

Maybe you are looking for