Results 1 to 3 of 3

Thread: Best way to find the absolute position of an editgrid's input cell?

  1. #1

    Default Best way to find the absolute position of an editgrid's input cell?

    I'm trying to find the absolute position of a cell in an editorgrid to create a popup/iframe/qtip/something need to a cell when a user doubleclicks.

    Listening for doubleclick will get me the row,col of the current cell but from there can I find the cell's current position in the browser?

    <div class="x-layer x-editor x-small-editor x-grid-editor" id="ext-comp-1025" style="position: absolute; z-index: 11000; visibility: hidden; left: -10000px; top: -10000px; overflow: auto;">
    <input type="text" name="" id="ext-comp-1003" autocomplete="off" size="20" class="x-form-text x-form-field" style="width: 139px; height: 16px;"></div>

    If I can get the ID of either the editor cell or containing div could I use getEL to find the item's current screen position?

    Thanks in advance,
    Derek

  2. #2
    Sencha User laurentParis's Avatar
    Join Date
    Aug 2010
    Location
    paris
    Posts
    246

    Default

    on cellclick or celldblclick grid event, use :
    PHP Code:
    listeners: {
      
    cellclick : function(gridrowIndexcolumnIndexe) {
        var 
    XY Ext.get(e.getTarget()).getXY();
      }


  3. #3

    Default

    Thanks, works great!

    I was using a less descriptive listener signature, leaving out e
    listeners: { cellclick: function(grid, rowIndex, colIndex)}

    Thanks for the quick response.

Similar Threads

  1. Ext.Button absolute position help
    By [email protected] in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 9 Sep 2009, 4:22 PM
  2. How to set absolute position on RootPanel?
    By Konstantin.Scheglov in forum Ext GWT: Bugs (2.x)
    Replies: 5
    Last Post: 21 Jun 2009, 11:22 AM
  3. position:absolute and column layout on FF
    By dolittle in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Feb 2008, 2:37 AM
  4. EditGrid - editors position with various adapters
    By tomb in forum Ext 1.x: Bugs
    Replies: 11
    Last Post: 4 Jul 2007, 12:49 PM
  5. Replies: 5
    Last Post: 29 Jan 2007, 10:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •