Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan Renneke on May 13, 2009 11:46
open dhtmlx forum
problem with attachTree to Layout and enableKeyboardNavigation

Hello,

if you double click or press F2 on the item to edit the name and than press enter, the whole navigation slides upwards because of an input box at the bottom of the screen.

This happens only inside of the layout when using the dhtlxTree in the dhtmlxLayout and also using enableKeyboardNavigation.

My source code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
    <script type="text/javascript" src="js/dhtmlXCommon.js"></script>
    <script type="text/javascript" src="js/dhtmlxlayout.js"></script>
    <script type="text/javascript" src="js/dhtmlxwindows.js"></script>
    <script type="text/javascript" src="js/dhtmlXTree.js"></script>

    <script type="text/javascript" src="js/dhtmlXTree_li.js"></script>
<script type="text/javascript" src="js/dhtmlXTree_ed.js"></script>
    <script type="text/javascript" src="js/dhtmlXTree_kn.js"></script>
    
    <link rel="stylesheet" type="text/css" href="css/dhtmlXTree.css">
    <link rel="stylesheet" type="text/css" href="imgs/dhtmlxLayout/codebase/dhtmlxlayout.css">
    <link rel="stylesheet" type="text/css" href="imgs/dhtmlxLayout/codebase/skins/dhtmlxlayout_dhx_blue.css">
    <link rel="stylesheet" type="text/css" href="imgs/dhtmlxWindows/codebase/dhtmlxwindows.css">
</head>
<body>
<script type="text/javascript">
var dhxLayout = new dhtmlXLayoutObject(document.body, "3L");
var tree = dhxLayout.cells("a").attachTree(0);

        tree.enableKeyboardNavigation(true);
        tree.enableItemEditor(true);
tree.setEditStartAction(false,true);
tree.setImagePath("imgs/");
tree.loadXML("tree.xml");
</script>
</body>
</html>

Would you kindly help me, please.

Best regards,
Stefan Renneke
Answer posted by Alex (support) on May 14, 2009 01:28

Hello, 

Locally we didn't get problems with this code. We've sent you the sample by email. 

If the issue still persists, please provide some more details about it. 

Answer posted by Stefan Renneke on May 14, 2009 08:36

Dear support team,

an old version of the dhtmlxtree.css file was the problem.

Thank you for help.

Best regards,
Stefan Renneke