1. #1
    ExtJS Premium Member
    Join Date
    Feb 2010
    Location
    Neptune Beach, Florida
    Posts
    50
    Vote Rating
    1
    gbegley is on a distinguished road

      0  

    Default How to show Context Menu without triggering a Selection event

    How to show Context Menu without triggering a Selection event


    I have a TreePanel with selection events doing some other loader stuff on other components. The Tree also has a Context Menu. When the context menu is invoked with a right click, it also triggers a Selection Event, causing the loader code to run from the selected node.

    I would like the right click to only show the context menu and not trigger the selection event. Ideas?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You will need to extend TreePanelSelectionModel and override onMouseDown. If it was a rightclick dont call the super method, btu call it in all otehr places.

Similar Threads

  1. [GXT 2.1] Context menu not hiding after selection.
    By alexmat in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 5 Jan 2010, 4:15 PM
  2. Replies: 2
    Last Post: 15 Jul 2009, 7:34 AM
  3. Replies: 1
    Last Post: 24 Jun 2009, 6:21 PM
  4. Making the column selection context menu scrollable or two columns
    By perzian in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 10 Jul 2008, 1:23 PM
  5. Context menu on grid causes browser's context menu to show
    By sfwalter in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 7 May 2007, 3:59 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar