split mode causes problem with custom header cell tooltip


#1

I am able to implement tooltips in header cells by doing the following:

fGrid.setHeader("id,{#tta},type,desc,quantity{#ttb},…

Along with some other coding, this works: I correctly get tooltips by hovering over both columns 1 and 4 in the header.

If I then implement split mode as follows:

fGrid.init();
fGrid.splitAt(3);
fGrid.loadXML…

this causes a split to start at column, which is what I want.

However, with split mode implemented, the tooltip after the split still works, but the tooltip before the tooltip now does NOT work. Is there a way to get this first tooltip to still work? I assume I need to put something after the splitAt line, but I don’t know what.

Thanks.


#2

Unfortunately the issue cannot be reconstructed locally.
The custom shortcut works well in a frozen side of a grid for us.
If issue still occurs for you - please, provide with any kind of sample of your code or a complete demo/demo-link where the issue can be reproduced.


#3

I am also facing this problem. Can you please let me know how you resolved it?


#4

HI i am also having the same problem when i add spiltAt in my grid my header tooltips are collapse.

can you give me some suggestion to when i load data to grid before spiltAt or after adivce please?

this is my code :slight_smile:

mygrid1._in_header_ToolCostCustom=function(tag,index,data){
var msg = “<%=iToolCostSum%>”;
tag.innerHTML="

"+data[0]+"
";
}

mygrid1.setImagePath(“view/images/grid-imgs/”);
mygrid1.setHeader(strColNames);
mygrid1.setInitWidths(strColWidth);
mygrid1.setColumnIds(strColIds);
mygrid1.setColAlign(strColAlign);
mygrid1.setColTypes(strColType);
mygrid1.setColumnsVisibility(strColVisible);
mygrid1.enableMultiline(true);
mygrid1.setColSorting(strColSort); // Sort enabled
mygrid1.attachHeader(strColFilter); // Filter enabled
mygrid1.entBox.onselectstart = function(){ return true; };
mygrid1.setStyle(“font: normal 14px/1.25 LatoBold, Helvetica, sans-serif;text-align:center;color:#68737a;”, “font: normal 14px/1.25 LatoRegular, Helvetica, sans-serif;”,“border:1px solid #000000;”, “background-color:#FFFFCC;”);
mygrid1.setSerializationLevel(true,false,true,false,false,true);
//mygrid1.enableColumnMove(true);
mygrid1.enableTooltips(strColTooltip);
mygrid1.init();
mygrid1.splitAt(5);
DHTMLXColumnConstants.setColumnIndices();


#5

Unfortunately the problem cannot be reproduced locally.
Could you please, provide a more detailed snippet, or a complete demo, where the problem can be reconstructed.