The Text and Value of the Combobox must be updated when a node is
selected. For this, simply add a client-side script at the bottom of your page:
<script type="text/javascript"> function ob_OnNodeSelect(id) { var node = document.getElementById(id); if (ob_getChildCount(node) == 0) { window.setTimeout(function() { setComboBoxText(id); }, 150); } }
function setComboBoxText(id) { { var node = document.getElementById(id); ComboBox1.selectedIndex(-1); ComboBox1.setValue(id); ComboBox1.setText(node.innerHTML); ComboBox1.close(); } </script>
|