Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swaroop on Nov 25, 2008 01:00
open dhtmlx forum
ToolTip not working

hi,
I have below code but i failed to see the tooltip

<HTML>
<body>
<link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid.css">
<script src="codebase/dhtmlxcommon.js"></script>
<script src="codebase/dhtmlxgrid.js"></script>
<script src="codebase/dhtmlxgridcell.js"></script>
<script src="codebase/ext/dhtmlxgrid_nxml.js"></script>
<script src="codebase/ext/dhtmlxgrid_srnd.js"></script>
<script src="codebase/ext/dhtmlxgrid_deprecated.js"></script>
<script src="codebase/ext/dhtmlxgrid_form.js"></script>
<script src="codebase/ext/dhtmlxgrid_keymap_extra.js "></script>
<script src="codebase/ext/dhtmlxgrid_srnd.js"></script>
<script src="codebase/ext/dhtmlxgrid_drag.js"></script>
<script src="codebase/ext/dhtmlxgrid_keymap_access.js"></script>
<script src="codebase/ext/dhtmlxgrid_nxml.js"></script>
<script src="codebase/ext/dhtmlxgrid_start.js"></script>
<script src="codebase/ext/dhtmlxgrid_filter.js"></script>
<script src="codebase/ext/dhtmlxgrid_keymap_excel.js"></script>
<script src="codebase/ext/dhtmlxgrid_selection.js"></script>
<script src="codebase/excells/dhtmlxgrid_excell_link.js"></script>
<script>
var gridQString = "";//we'll save here the last url with query string we used for loading grid (see step 5 for details)

</script>

<div id="products_grid" style="width:300px;height:200px;"></div>
<div id="Student" style="width:500px;height:200px;"></div>
<script>
function createGrid()
{
    alert("hi");
    
    var newGrid = new dhtmlXGridObject('Student');
    newGrid.setImagePath("codebase/imgs/");
    
    newGrid.setHeader("Roll no,Subject ,Medium, Marks");
    newGrid.setColTypes("ro,ed,ed,ed");
newGrid.setSkin("modern");

    newGrid.setColAlign("left,left,right");
    newGrid.init();
    newGrid.loadCSVFile("test2.csv");
    
}

function doonRowDblClicked(stage,rowId,cellInd)
{
    
    createGrid();
}
var mygrid = new dhtmlXGridObject('products_grid');
    mygrid.setImagePath("codebase/imgs/");
    
    mygrid.setHeader("Roll No,Student Name ,Marks, Percentage");
    mygrid.setColTypes("ro,link,ed,link");
    
    mygrid.enableMultiline(true);
    
    mygrid.setInitWidths("75,75,75,75");
mygrid.setColAlign("left,left,right");
mygrid.setSkin("modern");
    
        
    mygrid.init();

    mygrid.enableTooltips("false,true,true,true");

    mygrid.loadCSVFile("test1.csv");
    mygrid.enableTooltips("true,true,true,true");
mygrid.enableSmartRendering(true);
    mygrid.attachEvent("onRowDblClicked",doonRowDblClicked );

</script>
</body>
</HTML>
Answer posted by Support on Nov 25, 2008 02:16
The same code works correctly in local samples. 
( working sample sent by email )
Attachments (1)