When binding a context menu to multiple targets, the event.target node is not always correct

2 posts, 0 answers
  1. Jacob
    Jacob avatar
    21 posts
    Member since:
    Dec 2011

    Posted 07 Jul 2015 Link to this post

    Hi,

    We are working with the Kendo Context Menu. The problem we are dealing with happens when we are trying to bind one context menu to multiple targets (each row in a grid has a button, and each of those buttons should open the same menu). 

    In our click listener, it seems that the event.target element is not always the correct target that was clicked on. 

    A simple example is here: http://dojo.telerik.com/aYiTi/2

    Are we doing something wrong? Is there a more reliable way to get the element that was clicked on?

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 09 Jul 2015 Link to this post

    Hello Jacob,

    Indeed, this behavior is not expected when using the open event, so I have logged a GitHub issue that you can track. As a workaround, you can either subscribe to the activate event or use the e.event.target argument.
    As a small sign of our appreciation I have updated your Telerik points.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top