Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Multiple events fired for TreeGrid right click on IE11

    Be sure your post includes:

    1. SmartClient Ajax RIA system
    Version v9.1p_2014-06-30/Enterprise Deployment (2014-06-30)

    2. IE11(Edge Mode)

    3. None
    4. None

    5. None
    6. Uploaded SmartTreeGridDefect.java

    Problem is that when the TreeGrid is right clicked on IE11 two events are fired, RightMouseDownEvent and CellClickHandler in that order
    one IE11 (IE10 mode) only RightMouseDownEvent is fired which is the correct behavior.
    Attached Files
    Last edited by karankhokhani; 6 Mar 2015, 11:06.

    #2
    Thanks for the notification. This is assigned to a developer for investigation - we'll let you know when we have more information.

    Regards
    Isomorphic Software

    Comment


      #3
      We've taken a look at this and it appears to be an already fixed issue. If you pick up the latest nightly build on the 9.1 branch, this should be resolved for you.

      Regards
      Isomorphic Software

      Comment


        #4
        Originally posted by Isomorphic View Post
        We've taken a look at this and it appears to be an already fixed issue. If you pick up the latest nightly build on the 9.1 branch, this should be resolved for you.

        Regards
        Isomorphic Software
        Another quick question: If we are not in a position to upgrade, is it possible to check some property or call a method with helps us in filtering and thus ignoring the cellclick event which gets called after the right click event?

        Comment


          #5
          You should be able to call EventHandler.rightButtonDown() to determine whether the right mouse button is down or not.

          Regards
          Isomorphic Software

          Comment


            #6
            Originally posted by Isomorphic View Post
            You should be able to call EventHandler.rightButtonDown() to determine whether the right mouse button is down or not.

            Regards
            Isomorphic Software
            Hi, thanks for the reply. I tried using that method along with event.isRightButtonDown() which also has the same behavior. But in the cellclickEvent that method still returns false. See the attached example. Here I have defined two event handlers for right click and for cellclick events. When I right click, the right click event handler gets called and EventHandler.rightButtonDown() is true, immediately (for IE11 only) the cellClickEvent is called and within the handler EventHandler.rightButtonDown() is false. Please see attached example.

            What we want to achieve is in case of cell click figure out a right click was called and just return from the cellclick handler (just for IE11). This will ensure that we don't have to upgrade smartgwt without affecting the right click behavior. Currently our application (for IE11 only) when we right click behaves as if a left mouse button was clicked
            Attached Files
            Last edited by karankhokhani; 11 Mar 2015, 22:41.

            Comment


              #7
              The issue here is that in IE11 some native browser differences in event reporting confused our right-mouse-down detection / event handling system. The check for rightButtonDown() is clearly confused as well.
              We've since updated the framework code to deal with the different native event reporting behavior, so, as always, whenever upgrading is an option, that's our recommended solution.

              However if upgrading is not an option for you, since the right-click event is fired before the cell-click event, you could potentially solve this in application code by setting a flag on the right click event to ignore the subsequent cell click, and use GWT browser detection APIs to make this specific to IE11.

              But - to reiterate - we'd recommend you instead move to a newer version of the framework where this is already fixed.

              Regards
              Isomorphic Software

              Comment

              Working...
              X