Categories | Question details Back To List | ||
Can we set Tooltip at cell level Hi, How can i enable tooltip for particular cells. I have 2 cells in a column which are editable. So the tooltip should be different. I did not find any function to set tooltip at cell level. Please provide me a function that takes rowid,cellindex and sets the tooltip. Regards. Answer posted by dhxSupport on Mar 18, 2009 04:17 >>I did not find any function to set tooltip at cell level. Please provide me a function that takes rowid,cellindex and sets the tooltip. Unfortunately dhtmlxGrid hasn't such method. You can set custom tooltip only via xml as "title" attribute of the <cell> tag: <cell titile="Custom tooltip">Some value</cell> Answer posted by Lagnajeet Sahu on Mar 18, 2009 04:32 I am not loading my grid from xml. i am doing it using addRow function Answer posted by Lagnajeet Sahu on Mar 18, 2009 04:34 Please suggest a function that can add tooltip for a cell. (grid is not loaded with xml) Answer posted by dhxSupport on Mar 18, 2009 06:10 You can use setAtrribute method: grid.cells(id,ind).setAtrribute("title","tooltip value here") Answer posted by Lagnajeet Sahu on Apr 02, 2009 00:09 The solution you provided doesn not work. Answer posted by dhxSupport on Apr 02, 2009 04:42 Please try to use cellById(rowId,cellIndex) instead of cell(id,ind). Also check if you are calling this mehod after grid was fully loaded. mygrid.loadXML("grid.xml",function(){ |