Hi
Is there a way to put three dots (ellipses) when resizing grid column to be smaller than the text and add a tool tip?
For example: notify me when a reply is posted —> notify me when… (when I resize the column to be smaller)
Hi
Is there a way to put three dots (ellipses) when resizing grid column to be smaller than the text and add a tool tip?
For example: notify me when a reply is posted —> notify me when… (when I resize the column to be smaller)
Here is the simple sample of the similar functionality.
You may try to follow it up to suit your requirements:
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setHeader("Name,Date of Birth, First Book Published");
mygrid.setInitWidths("*,100,100")
...
mygrid.attachEvent("onResizeEnd", function(mygrid){
if (mygrid.getColWidth(0)<33){ mygrid.setColLabel(0,"<p title='Name'>...</p>");}
else { mygrid.setColLabel(0,"Name");}
if (mygrid.getColWidth(1)<71){ mygrid.setColLabel(1,"<p title='Date of Birth'>...</p>");}
else { mygrid.setColLabel(1,"Date of Birth");}
if (mygrid.getColWidth(2)<59){ mygrid.setColLabel(2,"<p title='First Book Published'>...</p>");}
else { mygrid.setColLabel(2,"First Book Published");}
});