Announcement

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

    Recordclickhandler and (x, y)

    Is it somehow possible to get the x and y inside the record for a recordclickevent. Say you only want something to happen if you click on the left third of a record.

    #2
    Hi mathias,

    EventHandler has a lot of static methods. See if you find something that helps you there.

    Best regards
    Blama

    Comment


      #3
      Thanks Blama. i did look there, but i could only find page-relative coordinates.

      Comment


        #4
        Hi mathias,

        I assume you need to continue from there on your own, find out left/right x of the cell, compare to getX() or something of this kind. But I'm not sure, did not try such a thing yet.

        Best regards
        Blama

        Comment


          #5
          Subtracting the grid's getPageLeft() from the page-level coordinate and you have an offset into the grid. Then use getEventCol() and subtract off widths of fields before the event column.

          Comment


            #6
            Right. thanks.

            Comment

            Working...
            X