header cell position on hover

42 views
Skip to first unread message

Gianluca Bisceglie

unread,
Oct 15, 2012, 5:22:44 AM10/15/12
to slic...@googlegroups.com
Is there a way, similar to getActiveCellPosition() for an ordinary cell, to get the position of the header cell when hovering on it?

Thanks,
Gian

Michael Leibman

unread,
Oct 15, 2012, 4:39:40 PM10/15/12
to slic...@googlegroups.com
grid.onHeaderMouseEnter.subscribe(function(e, args) }
  // args.column has the column definition
  // grid.getColumnIndex(args.column.id) has the index
});

Gianluca Bisceglie

unread,
Oct 16, 2012, 2:21:34 AM10/16/12
to slic...@googlegroups.com
Thanks Michael.

I can see the width of the header cell among the args.column attributes.

How would you suggest to get the left and top coords? Would like to overlay icons on hover as I successfully did on ordinary cells.

Thanks,
Gian

Michael Leibman

unread,
Oct 16, 2012, 2:37:19 PM10/16/12
to slic...@googlegroups.com
grid.getHeaderRowColumn(id) gives you the DOM element which you can query for position further.
Reply all
Reply to author
Forward
0 new messages