Results 1 to 5 of 5

Thread: Double Click on Cell Event

  1. #1
    Sencha User lukefowell89's Avatar
    Join Date
    Nov 2010
    Location
    Dorset, UK
    Posts
    262

    Default Double Click on Cell Event

    I want to be able to run a method when a cell is double clicked on. I can see "cellselect" in CellSelectionModel which I am using. I can also see, "dblclick" in GridPanel.

    What I am trying to achieve is similar to the EditorGridPanel, but I am doing things differently and I have to use a GridPanel. Any suggestions?
    My Web Design, Development & Internet Marketing Blog: http://www.aztec-online.com
    Read My Review of the latest Ext JS Framework:Ext JS 4 Review

  2. #2
    Sencha User lukefowell89's Avatar
    Join Date
    Nov 2010
    Location
    Dorset, UK
    Posts
    262

    Default

    Oh and the reason I am posting is because celldblclick doesnt seem to work!
    My Web Design, Development & Internet Marketing Blog: http://www.aztec-online.com
    Read My Review of the latest Ext JS Framework:Ext JS 4 Review

  3. #3
    Sencha User lukefowell89's Avatar
    Join Date
    Nov 2010
    Location
    Dorset, UK
    Posts
    262

    Default

    Anyone?
    My Web Design, Development & Internet Marketing Blog: http://www.aztec-online.com
    Read My Review of the latest Ext JS Framework:Ext JS 4 Review

  4. #4
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Are you sure that celldblclick is not working on GridPanel?

    I just changed the array-grid example to use a CellSelectionModel and added a celldblclick event handler to the grid and it worked as expected. (Note, this was on ExtJS 3.2.1)

    Try it yourself in array-grid.js:

    Code:
     
    ...
     
    var grid = ...
      store: store,
      sm: new Ext.grid.CellSelectionModel(),
      ...
    });
     
    grid.on('celldblclick', function(g, rowIndex, colIndex, e)
    {
      console.log(colIndex);
    });

  5. #5
    Sencha User lukefowell89's Avatar
    Join Date
    Nov 2010
    Location
    Dorset, UK
    Posts
    262

    Default

    THanks for reply, i figured it out in the end. The project I am working on is getting quite large now, and the problem was to do with z-index's of components on the screen. It was unusual because the grid selected fine, but wouldnt register an events on the actual grid part. I changed the z-index from 19000 to 20001 and it works fine now.
    My Web Design, Development & Internet Marketing Blog: http://www.aztec-online.com
    Read My Review of the latest Ext JS Framework:Ext JS 4 Review

Similar Threads

  1. Grid cell double click example
    By k4anil in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jul 2009, 4:22 AM
  2. Capture Double Click on TreeTable Cell
    By baradas in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 11 Jul 2008, 4:01 AM
  3. Double click breaks the click event for entire application
    By s.e.todd in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Apr 2008, 12:36 PM
  4. Question on double click and single click event handlers within grid
    By NotChris in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 27 Feb 2008, 11:51 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
  •