Announcement

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

    Position of Selected Cell

    Hi. I'm trying to get the X and Y offset from a selected row in a Listgrid. I can't find a function like getOffsetY() for ListGridRecord. Also, the row is selected programmatically, meaning I can't put in a clickhandler to grab the coordinates. Any suggestions? Thanks.

    #2
    Hi gazebo888,

    is this to show a context menu or similar? See EventHandler and it's static methods.

    JS Example with hoverComponent
    See here for Menu

    Best regards
    Blama

    Comment


      #3
      Thanks for the reply, but no mouse will be involved. I just want to draw an image over the selected record that is selected programmatically. Thanks.

      Comment


        #4
        grid.getRowTop(grid.getRecordIndex(grid.getSelectedRecord()))

        Comment


          #5
          Of course, getRowHeight() et al as well - also, see getCellPageRect() and similar APIs, if you want that much control

          Comment


            #6
            Thanks for the answer. Very helpful.

            Comment

            Working...
            X