Results 1 to 6 of 6

Thread: Locking grid - Event not binding for locked and normal grid

  1. #1
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default Locking grid - Event not binding for locked and normal grid

    Hi,

    I am having a grid where first two column is locked: true.

    I am trying to extend cell model for cell mouse over event, but it's not working.

    When I mouse over a cell, its not getting fired.

    Please suggest me here how I can bind both locked and normal view so each event I bind got executed fine.

    Code:
    Ext.define('Ext.ux.grid.egrid.AdjustmentMultiCellSelectionModel', {
        extend: 'Ext.selection.CellModel',
        alias: 'widget.MultiCellModel',
        bindComponent: function(view) {
            var me = this,
            grid = view.ownerCt;
            me.primaryView = view;
            me.views = me.views || [];
            me.views.push(view);
            me.bindStore(view.getStore(), true);
    
    
            view.on({
                cellmousedown: me.onMouseDown,
                cellcontextmenu: me.onContextmenu,
                cellmouseup: me.onMouseUp,
    cellmouseover: me.onMouseOver,
    refresh: me.onViewRefresh, scope: me }); if (grid.optimizedColumnMove !== false) { grid.on('columnmove', me.onColumnMove, me); } if (me.enableKeyNav) { me.initKeyNav(view); } })
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  2. #2
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default

    @Gary, can you suggest some workaround for this.
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    So it's working on the normal side of the grid?

  4. #4
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    So it's working on the normal side of the grid?
    Gary,

    I am providing a fiddle for ease.

    Only cellmouseover is not working in either grid. If i remove locking , then it works

    Code:
    view.on({
    cellmousedown: me.onMouseDown, // Working
    cellmouseup: me.onMouseUp, //Working
    cellmouseover: me.onMouseOver, // Not working
    cellkeydown: me.onKeyD, //working
    cellcontextmenu: me.onContextmenu, // Working
    refresh: me.onViewRefresh,
    scope: me
    }); view.headerCt.addListener('headerclick', me.onHeaderClick); // Working
    Please have a try in below fiddle. You can see the output in browser console.

    https://fiddle.sencha.com/#view/editor&fiddle/20nf

    Need your assistance here
    Last edited by SurenderBhyan1; 1 Jun 2017 at 11:38 PM. Reason: Some of event are working now.
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I don't see a cellmouseover event available on the grid panel.
    http://docs.sencha.com/extjs/4.2.1/#...Ext.grid.Panel

  6. #6
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    I don't see a cellmouseover event available on the grid panel.
    http://docs.sencha.com/extjs/4.2.1/#...Ext.grid.Panel
    Thanks Gary for assisting me,

    I am using MultiCellSelectionModel.js where I am binding these event on view in bindComponent method.

    My confusion is here that If I add locked: true for any columns then cellmouseover on cells is not firing in any grid (locked as well as normal one), but if I remove locked: true from same columns then cellmouseover event is firing well.

    See below fiddle where I have removed locking and cellmouseover is firing perfectly.

    https://fiddle.sencha.com/#view/editor&fiddle/20ve
    ---A ship in the harbor is safe, but that is not what the ships are made for...

Similar Threads

  1. Replies: 1
    Last Post: 27 Jul 2018, 2:37 AM
  2. [OPEN] [6.2] Locked grid hides normal grid header
    By tobiu in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 10 Sep 2016, 5:22 PM
  3. Locked grid hides normal grid header
    By mankz in forum Ext 6.2 Early Access
    Replies: 0
    Last Post: 7 Sep 2016, 3:04 AM
  4. Replies: 2
    Last Post: 26 Nov 2014, 9:53 AM
  5. Replies: 2
    Last Post: 25 Mar 2013, 6:41 AM

Tags for this Thread

Posting Permissions

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