mtyson
August 27, 2010, 12:50pm
#1
Seeing a strange problem with the tree, in IE:
In some cases, when the tree is used, it will hide newly loaded grids.
For instance, we have a tree that when you click a node, it loads another pane and contains a grid. On some of these nodes, when you click them, the grid will never appear (watching the console, the grid successfully downloads all the data). As soon as you move the mouse off the tree, the grid then appears.
This is a high priority item for us.
Olga
August 27, 2010, 1:12pm
#2
Please open ticket at support.dhtmlx.com/ and provide us complete demo or demo link where we can reproduce it
mtyson
August 27, 2010, 2:15pm
#3
Unfortunately, its a secured application.
Olga
August 27, 2010, 2:23pm
#4
Can you provide code snipped of dhtmlxTree and dhtmlxGrid initialization without sending actual grid and tree data?
mtyson
August 27, 2010, 3:03pm
#5
Here’s the tree:
folderTree = new dhtmlXTreeObject(“folderbox”,“100%”,“100%”,0);
folderTree.setImagePath("${cdnPath}/test/tree/");
folderTree.enableDragAndDrop(true);
folderTree.enableHighlighting(1);
folderTree.attachEvent(“onDrag”, doOnDragDrop);
folderTree.attachEvent(“onClick”, doFolderClick);
folderTree.attachEvent(“onDragIn”, doOnDragIn);
folderTree.enableItemEditor(true);
folderTree.setEditStartAction(false, true);
folderTree.enableTreeLines(false);
folderTree.attachEvent(“onEdit”, onEditFolder);
folderTree.attachEvent(“onXLE”, onFolderLoadEnd);
folderTree.loadXML(“test.do?userId=${form.currentUserId}”);
folderTree.attachEvent(“onRightClick”, onFolderRightClick);
folderTree.loadXML(“test.do?op=hmsfolders”);
And here’s the grid:
directorygrid = new dhtmlXGridObject(‘directorybox’);
directorygrid.enableDragAndDrop(true);
directorygrid.setDragInHandler(doOnDragIn);
directorygrid.setSkin(“light”);
directorygrid.setImagePath(window.cdnPath+"/test/images/dhtmlx/");
// NOTE: Header is defined properly
directorygrid.setHeader(header);
directorygrid.enableTooltips(enableTooltips);
directorygrid.setInitWidthsP(headerWidths);
directorygrid.setColAlign(headerAlign);
directorygrid.setColTypes(headerType);
directorygrid.setColSorting(headerSort);
directorygrid.enableServerSort(“test.do?op=json&groupId=”+this.groupId+"&option="+this.formOption+"&showParents=true",headerFields);
directorygrid.enableAlterCss(“grideven”,“gridodd”);
directorygrid.enableRowsHover(true, “rowsHover”);
directorygrid.setOnLoadingStart(showLoading);
directorygrid.setOnLoadingEnd(this.directoryGridOnLoadingEnd);
directorygrid.setOnRightClick(this.doDirectoryRightClick);
directorygrid.attachEvent(“onRowDblClicked”, this.sendEmailToDirectoryList);
directorygrid.setDragTextCol(0);
directorygrid.setScrollbarWidthCorrection(20);
directorygrid.setLoadingMessage(“Loading Directory…”);
directorygrid.init();
directorygrid.setMultiselect(true);
directorygrid.setDragText(“contact”);
directorygrid.enableSmartRendering(true,this.formCount > 100 ? 100 : this.formCount);
directorygrid.load(“directory.do?op=json&groupId=”+this.groupId+"&option="+this.formOption+"&showParents=true", “json”);
directorygrid.setSortImgState(true, 2, “ASC”);
Olga
August 30, 2010, 10:46am
#6
Your code looks correct.
What version of dhtmlxTree and dhtmlxGrid are you using?
Can you provide code of doFolderClick() handler?