Show tooltip for truncated cell values.

1,697 views
Skip to first unread message

Joshua Poehls

unread,
Apr 12, 2012, 5:04:46 PM4/12/12
to slic...@googlegroups.com
Cell values that are too long to fit in the column get truncated. This is fine, but I want to show the user a tooltip with the full value when they hover over the cell.

My first attempt has been to subscribe to the grid's onMouseEnter event to show the tooltip but I'm not sure how to get the cell's value here.

How can I get the data item for a given row and cell index? 

Has anyone done this before? Help?

Thanks!

Michael Leibman

unread,
Apr 12, 2012, 5:50:30 PM4/12/12
to slic...@googlegroups.com

Joshua Poehls

unread,
Apr 12, 2012, 5:55:19 PM4/12/12
to slic...@googlegroups.com
You. Are. My. Hero.

Thank you! Can't believe I missed that when it was right under my nose the whole time.

--
Joshua Poehls

Steven Roberts

unread,
Apr 18, 2012, 11:03:44 AM4/18/12
to slic...@googlegroups.com
sorry if this is a silly question, but how do I 'connect' this to the grid.  I'm pretty new to SlickGrid.  

mygrid.AutoTooltips() isn't right....

Joshua Poehls

unread,
Apr 18, 2012, 11:05:31 AM4/18/12
to slic...@googlegroups.com
mygrid.registerPlugin(new Slick.AutoTooltips());

--
Joshua Poehls

Steven Roberts

unread,
Apr 18, 2012, 11:08:35 AM4/18/12
to slic...@googlegroups.com
Thank you very much!  
Reply all
Reply to author
Forward
0 new messages