Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by oVox on Jan 15, 2008 11:07
open dhtmlx forum
Nodes with Inputs

Hi!, i set Input Text controls at my nodes, everything works great but when i double click over the Input Text, it doesn't select all the Text Range, how can i solve this?
An excampe of my XML:

<?xml version="1.0" encoding="iso-8859-1" ?>
<tree id="LEVEL=5||ID_INSTALACION=4||ID_PROYECTO=1||ID_ESCENARIO=1||ID_NODO_PARENT=||ID_NODO=129||ID_INSTALACION_ESCENARIO=6||ID_TIPO_NODO=||TIPO_NODO">
<item im1="folderOpenM.png" im2="folderClosedM.png" im3="folderClosedM.png" child="0" id="CANT129" text="<table cellspacing="0" style="width:100%; background-color:silver;"> <tr><td style="color:steelblue;" title="Cantidad">CANT</td> <td style="text-align:right; color:steelblue"> un <input type="hidden" name="PARAM[]" value="CANT||129||1" size="10"> <input type="text" name="CANT||129" value="1" size="10"> </td></tr> </table>">
<userdata name="129">129</userdata>
</item>
</tree>


Thanks
Answer posted by Support on Jan 16, 2008 07:40
By default all selection in tree blocked, you can reenable selection by two steps

a) add next line of code
    tree.allTree.onselectstart=function(){ return true; }
b) in dhtmlxtree.css remove all occurences of
     -moz-user-select: none;