|
|
You can easily add any .NET control to the Combobox,
even an ASPTreeView component.
|
| | |
ASP.NET
<obout:Combobox id="cbo1" runat="server"> <CustomOptions> <obout:Custom> <asp:literal id="TreeView" runat="server" /> </obout:Custom> </CustomOptions> </obout:Combobox>
|
| | |
JavaScript
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) { cbo1.setText(document.getElementById(id).innerHTML); cbo1.setValue(id); } </script>
|
| | |
| "Fantastic controls." |
Gibbons, Bobby |
| Expertech.net |
| | |
|