Categories | Question details Back To List | ||
User Defined Tool Tip I want a user defined tool tip for the cells instead of the tool tip that shows by default with the value of the cell. Answer posted on Nov 02, 2007 06:02 Latest build supports "title" attribute in configuration XML <cell title="some tooltip here"> In common case you can redefine tooltip text genneration in custom way /*========= Tooltip modification start ==============*/ dhtmlXGridCellObject.prototype.getTitle=function(){ //check if userdata with tooltip exists var tip=this.grid.getUserData(this.cell.parentNode.idd,"tip_"+this.cell._cellIndex); if (tip) return tip; //if no special tooltip - return current value return this.cell.innerHTML; } // some excell as link,img and some others, has custom // getTitle methods, you need to redefine it for each // such excell if necessary // // eXcell_img.prototype.getTitle=dhtmlXGridCellObject.prototype.getTitle; // /*========= Tooltip modification end ==============*/ |