Disable Specific Event in Datagrid

Hi everybody,
I'm searching a way to disable native event (CTRL+B keyPress
in a datagrid) but I couldn't find anything in the actionscript
reference.
Is there somebody who manage to do something like this on a
component???
Thanks

Hi Moorthi,
Found Alex Harui’s excellent entry on 'Disabling List Selection' - http://blogs.adobe.com/aharui/2007/06/disabling_list_selection.html.
Same concept could be applied for datagrid selection.
Thanks and Regards,
Pooja Kuber | [email protected] |http://www.infocepts.com

Similar Messages

  • Disablying keyboard events in a JFrame.

    Hello,
    How is it possible to disable keyboard events for a specific JFrame and then (after a while) enable events again ?
    thank you,
    Rami

    Look at this program, events are send but you can't see the data in the fields.
    import java.awt.*;
    import java.awt.event.*;
    public class Nok extends Frame
    public Nok()
         super();
         setBounds(6,6,400,300);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         setLayout(new GridLayout(4,0));     
         add(new TextField("this is a text field"));
         add(new TextArea("this is a text area"));
         add(new Button("this is a button"));
         setVisible(true);
         Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener()
         {     public void eventDispatched(AWTEvent e)
                   System.out.println(""+e);
                   ((KeyEvent)e).consume();
         }   ,AWTEvent.KEY_EVENT_MASK);
    public static void main (String[] args)
         new Nok();  
    Noah
    import java.awt.*;
    import java.awt.event.*;
    public class Nok extends Frame
    public Nok()
         super();
         setBounds(6,6,400,300);     
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         setLayout(new GridLayout(4,0));     
         add(new TextField("this is a text field"));
         add(new TextArea("this is a text area"));
         add(new Button("this is a button"));
         setVisible(true);
         Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener()
         {     public void eventDispatched(AWTEvent e)
                   System.out.println(""+e);
                   ((KeyEvent)e).consume();
         } ,AWTEvent.KEY_EVENT_MASK);
    public static void main (String[] args)
         new Nok();

  • HT2513 how do I share specific events on my calendar with others?

    How do I share specific events on my calendar with others?

    To share an entire calendar via mac and icloud you will either need a iCal server or to login with your icloud account with the computer you want the calendar on. I find the easiest way to share calendars is to sync your calendar with Google Calendar. Login to Google Calendar, under the "My Calendars" Tab on the left side, find the calendar you would like to share. Hover over it with the mouse and an upside down triangle will appear a little to the right of the calendar name. Click on the triangle and click share this calendar.

  • HT4890 Can I share a specific event with friends on iCloud via Photostream?

    Can I share a specific event with friends on iCloud via Photostream?

    No, not until iOS 6 comes out.

  • Can  DISABLE preProcess Event Handler add to the Orchestration parameters?

    I have a DISABLE pre-process event handler defined on the User object. I need to set the current date on a USR UDF attribute whenever the user is disabled or enabled or created. The CREATE handler works and the date value shows up on the user profile. However, when I try to set this attribute on the pre-process DISABLE or ENABLE event handlers, the new date does not show up. Here is the code I am using in my DISABLE/ENABLE event handler:
    Date currentTime = new Date(System.currentTimeMillis());
    orchestration.addParameter(USER_STATUS_DATETIME_ATTR_NAME, currentTime);
    Where the orchestration object is from the execute() parameter list.
    Any ideas as to why this is not working? Is adding to the orchestration not allowed for DISABLE or ENABLE event handlers? I know my handler is getting calls as I am logging the orchestration.getOperation() value.
    Thanks for any suggestions.
    -Dave
    Edited by: user552098 on Nov 12, 2012 1:56 PM

    When you update the field, make sure you are using the field label name, and not the UDF value.
    -Kevin

  • How can I put a time delay between specific events in a while loop?

    How can I put a time delay between specific events within the same while loop? I'm already using the "wait" command to control the overall loop iteration speed. But I want to time the individual events as well.

    Hi Jesse,
    You can use a flat sequence. In each box you can put your individual events and attached wait.
    Don't forget to reduce your total loop time of the time you added in the individual sequences.
    Doc-Doc
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

  • How can I disable the "Events" how can I disable "Faces"

    buona sera
    how can I disable the "Events"
    how can I disable "Faces"
    grazie

    You can not
    Events are one of many views or your photos in your library - as are faces
    YOu can simply ignore both but you can disable them
    LN

  • Disabling mouse events

    hi,
    I am having objects on a JFrame that respond to mouse events. I would like to know how I can disable these events. I use the addMouseListener to register a mouse event on something. Is there a way to remove or to deregister mouse events.
    I basically have a game of tiles on a JFrame and I am going to have the human player play against the computer. I want to be able to have turns; computer and human player turn.

    removeMouseListener()

  • Using Async to wait for a specific event

    I've simplified the creation and deletion calls and used a generic item.  In my before method, I call Async.handleEvent to wait for PropertyChangeEvents, but this only waits for the first one.  My problem lies in the fact that ItemManager is an IEventDispatcher that sends multiple property change events, but I need to wait for the specific event with the property "item".  However, when I call Async inside the handler, it does not keep the Test method from running, Before assumes that it's Async responsibilities have been fulfilled and launches the next stage of tests.  How can I keep Before from moving on until an event with a specific property has been received?
    public class Test
            private static const TIME_OUT:int = 3000;
            [Before(async)]
            public function runBeforeEveryTest() : void
                // Create a new item
                item.create();  // This is an asynchronous creation that sends many Property Change events
                //Wait for the item to be created before continuing tests.
                Async.handleEvent( this, ItemManager.instance, PropertyChangeEvent.PROPERTY_CHANGE, handlePropertyChangeForItem, TIME_OUT);
            [After]
            public function runAfterEveryTest() : void
                // Delete the Item
                item.delete();
            [Test(async)]
            public function itemExists() : void
                      Assert.assertTrue( item.exists() );
           private function handlePropertyChangeForItem(evt:PropertyChangeEvent, eventObject:Object) : void
                 if (evt.property == "item")
                     // Now that the item has been created, we can start the tests.
                     return;
                 else
                     // Keep waiting.
                     Async.handleEvent( this, ItemManager.instance, PropertyChangeEvent.PROPERTY_CHANGE, handlePropertyChangeForItem, TIME_OUT);
    Thanks in advance, it's greatly appreciated!

    I can't reproduce this issue. All seems to be working fine with multiple deferred Async calls. I am pasting my code in. Since I did not have your manager, I tried to repiicate this with a timer. If you could look at my code and see if it differs from yours in a significant way, I can take another shot, but it seems to be working as expected.
    package  
    import flash.events.TimerEvent; 
    import flash.utils.Timer; 
    import mx.events.PropertyChangeEvent; 
    import org.flexunit.Assert; 
    import org.flexunit.async.Async; 
    public class NestedAsync { 
    private static const TIME_OUT:int = 3000; 
    private var timer:Timer; 
    Before(async)]
    public function runBeforeEveryTest() : void {   timer =
    new Timer( 1000, 5 ); 
      Async.handleEvent(this, timer, TimerEvent.TIMER, handleTimerTick, TIME_OUT);timer.start();}
    [After]
    public function runAfterEveryTest() : void {  timer.stop();
      timer =
    null;}
    Test(async)] 
    public function itemExists() : void {Assert.assertTrue(
    true );}
    private function handleTimerTick(evt:TimerEvent, eventObject:Object) : void {  
      if ( timer.currentCount == 5 ) { 
        // Now that the item has been created, we can start the tests. 
        return;  }
      else  { 
        // Keep waiting.    Async.handleEvent(
    this, timer, TimerEvent.TIMER, handlePropertyChangeForItem, TIME_OUT);
    suite.cases { 

  • Disable trace event

    Hi,
    I have enable a trace and now i want to disable this event trace. How can i do this??
    The command that i use to enable is the following:
    alter system set events '1349 trace name context forever, level 7'
    Tks,
    Paulo.

    Oops!!!
    I done worng
    alter system set events '1349 trace name context off, level 7';
    Tks,
    Paulo.

  • Is it (or can it become) possible to assign colors to calendar categories or even specific events?

    For the 'Category' feature this could be done with a pick-list for each category; Maybe a color selection over-ride for specific events under the 'Options' menu?
    This would really help calendar readability -
    Thanks!

    For categories, you can set the colour of a tiny bar in the event's entry in the calendar.
    [http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Options]|Calendar|Categories
    You can set the colours associated with calendars so a clumsy way to do it would be have separate calendars for the types of events you want to track. This would allow the entire entry to be coloured rather then the tiny blob associated with a category.

  • I should be able to edit the specific event caldendar of a persons Birthday :)

    I should be able to edit the specific event caldendar of a persons Birthday :)

    The birthdays calendar is taken from the birthday field of a contacts info in the Contacts app. Edit the birthdate there and it will update the birthdays calendar automatically.

  • Problem viewing photos in specific events

    Recently, when I click on an event, it will not show me the grid with all my photos in that specific event. It will only show me one photo that is enlarged, and i cannot select various photos to copy over to another album or whatever i would like to do. In the past I have been able to view the set of photos in the event, but no more. I am not sure what happened. I checked the preferences and the box is checked for show event photos for Double Click Event -
    Any help would be greatly appreciated-
    thanks bunches

    Recently I post this Message:
    "two days ago when I opened iphoto program, last 3 years events are no more at my events list. I didn't deleded them, I'm the only one user of my macbook. I kept photos from 2002 up today, after I lost last 3 years events I only have 9,000 photos at library (may be there were more than 20,000 before they disappear). I found all missing photos in the iphoto library carpet, but iphoto doesn't show them for me. How can I view again these photos??"
    Check these out (open iphoto library with right click mouse on it, select Show Pack content"... something like that) Your original photos must to be there

  • Powershell script to search specific event ID's from Archive Event files

    Hi,
    I have to search some Windows Event ID's from Archive event (evtx) files. for that i am trying powershell code mentioned on below link but its not working. Kindly suggest how to search specific event id from archive logs.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/83cbf185-bd96-4efc-b36b-59439024960a/parse-message-property-from-archived-eventlog
    Regards,
    Dhiraj

    Hi,
    Thanks for your response. I am using below code & getting below message. I changed the event ID & got some results. Can we remove those lines form results where record not found. like how can we get only those records which match given
    event ID. also it's not showing all field values. Is there any formating issue.
    $SearchID='4740' 
    get-childitem "C:\Windows\System32\Winevt\Logs\Archive-Security*.evtx" | select FullName | forEach{
     %{get-winevent  -filterHashTable @{path=$_.Fullname;ID=$SearchID} |                
        ? {$_.Properties[5].Value -match $UserName} |   
        Select-Object -Property TimeCreated, `
                                @{Name='SecurityId';Expression={$_.Properties[4].Value}}, `
                                @{Name='AccountName';Expression={$_.Properties[5].Value}}, `
                                @{Name='AccountDomain';Expression={$_.Properties[6].Value}}, `
                                @{Name='LogonId';Expression={$_.Properties[7].Value}}, `
                                @{Name='LogonType';Expression={$_.Properties[8].Value}}, `
                                @{Name='Workstation';Expression={$_.Properties[11].Value}}, `
                                @{Name='LogonGuid';Expression={$_.Properties[12].Value}} |
        Format-Table
    Get-WinEvent : No events were found that match the specified selection criteria.
    At C:\Users\sidadmin1\Documents\EventIDCheck.ps1:3 char:16
    +  %{get-winevent <<<<   -filterHashTable @{path=$_.Fullname;ID=$SearchID} |
        + CategoryInfo          : ObjectNotFound: (:) [Get-WinEvent], Exception
        + FullyQualifiedErrorId : NoMatchingEventsFound,Microsoft.PowerShell.Commands.GetWinEventCommand
    TimeCreated    SecurityId     AccountName     AccountDomain LogonId        LogonType      Workstation    LogonGuid
    3/11/2014 4... DC04$          MyDomain                 999
    Get-WinEvent : No events were found that match the specified selection criteria.
    At C:\Users\sidadmin1\Documents\EventIDCheck.ps1:3 char:16
    +  %{get-winevent <<<<   -filterHashTable @{path=$_.Fullname;ID=$SearchID} |
        + CategoryInfo          : ObjectNotFound: (:) [Get-WinEvent], Exception
        + FullyQualifiedErrorId : NoMatchingEventsFound,Microsoft.PowerShell.Commands.GetWinEventCommand
    Dhiraj

  • Can I import a photo into a specific event folder?

    When I import a photo into iPhoto 11 it goes into the latest import folder.
    Then I have to drag these photos all over the event screen to get them into the folder I want
    Is there a way to get iPhoto to import into a specific event folder?
    Sorry if this is basic but I don't know the answer
    TIA
    Mark

    Greetings Mark,
    When you import photos into iPhoto they go into Events on the left hand side.  They also temporarily show up in the Last Import section but this changes each time you do an import.
    Events are created based on when you import the images.  You cannot control which event the images go into as this process is handled by iPhoto in the background.  You can move images from one event to another if you like once the import is complete.
    If you use Albums (type in the word Albums in the help menu for more details) you could drag images from the desktop directly into an Album and that image will be added.
    You might find this help menu video on Events useful: http://support.apple.com/kb/VI187
    Hope that helps.

Maybe you are looking for