Hi
I am Not get the "+ " and "-" sign images in front of the Rad tree which is placed inside the Rad combobox. But the content is displayed in tree structure without "+ and "-" images.
In the client side I am implementing this code:
<telerik:RadComboBox ID="RadCmbContent" runat="server" OnClientBlur="NodeLoad" EnableTheming ="true" Width="250px" Height="160px" ShowToggleImage="True">
<ItemTemplate>
<div id="div1" class="DropDownTreeViewDiv">
<telerik:RadTreeView ID="ObjectFolder" runat="server" Width="230px" EnableEmbeddedSkins="False"
OnClientNodeClicking="nodeClicking" >
</telerik:RadTreeView>
</div>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem Text="" ParentID='<%# Eval("StructureId") %>' />
</Items>
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Type="OutQuart" />
</telerik:RadComboBox><br /><br />
<script type="text/javascript">
var div1 = document.getElementById("div1");
div1.onclick = StopPropagation;
</script>
In the sever side :
On page load event:
Dim ObjectFolder As RadTreeView = Nothing
For Each myItem As RadComboBoxItem In RadCmbContent.Items
ObjectFolder = DirectCast(myItem.FindControl("ObjectFolder"), RadTreeView)
Exit For
Next
Dim rootNode As New RadTreeNode
Dim Parentid As String
Dim checkMenuType As String
If MenuType.WebFolders = menutypes Then
SqlString = "select [ParentID] FROM " & ClientName & ".[dbo].[Structure] where [StructureID]=" & Structid
Parentid = oDb.ExecuteScaler(SqlString)
SqlString = "select [MenuType] FROM " & ClientName & ".[dbo].[Structure] where [StructureID]=" & Parentid
checkMenuType = oDb.ExecuteScaler(SqlString)
'rootNode.Text = "---------Select----------"
If checkMenuType = MenuType.Websites Then
rootNode.Text = NodeName
rootNode.ToolTip = NodeName
rootNode.Value = Structid
rootNode.ExpandMode = TreeNodeExpandMode.ServerSide
ObjectFolder.Nodes.Add(rootNode)
LoadClientNode(rootNode)
End If
End if
The above one is the parent Node. Is there any property I have to set for this ...
Help me...
I am Not get the "+ " and "-" sign images in front of the Rad tree which is placed inside the Rad combobox. But the content is displayed in tree structure without "+ and "-" images.
In the client side I am implementing this code:
<telerik:RadComboBox ID="RadCmbContent" runat="server" OnClientBlur="NodeLoad" EnableTheming ="true" Width="250px" Height="160px" ShowToggleImage="True">
<ItemTemplate>
<div id="div1" class="DropDownTreeViewDiv">
<telerik:RadTreeView ID="ObjectFolder" runat="server" Width="230px" EnableEmbeddedSkins="False"
OnClientNodeClicking="nodeClicking" >
</telerik:RadTreeView>
</div>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem Text="" ParentID='<%# Eval("StructureId") %>' />
</Items>
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Type="OutQuart" />
</telerik:RadComboBox><br /><br />
<script type="text/javascript">
var div1 = document.getElementById("div1");
div1.onclick = StopPropagation;
</script>
In the sever side :
On page load event:
Dim ObjectFolder As RadTreeView = Nothing
For Each myItem As RadComboBoxItem In RadCmbContent.Items
ObjectFolder = DirectCast(myItem.FindControl("ObjectFolder"), RadTreeView)
Exit For
Next
Dim rootNode As New RadTreeNode
Dim Parentid As String
Dim checkMenuType As String
If MenuType.WebFolders = menutypes Then
SqlString = "select [ParentID] FROM " & ClientName & ".[dbo].[Structure] where [StructureID]=" & Structid
Parentid = oDb.ExecuteScaler(SqlString)
SqlString = "select [MenuType] FROM " & ClientName & ".[dbo].[Structure] where [StructureID]=" & Parentid
checkMenuType = oDb.ExecuteScaler(SqlString)
'rootNode.Text = "---------Select----------"
If checkMenuType = MenuType.Websites Then
rootNode.Text = NodeName
rootNode.ToolTip = NodeName
rootNode.Value = Structid
rootNode.ExpandMode = TreeNodeExpandMode.ServerSide
ObjectFolder.Nodes.Add(rootNode)
LoadClientNode(rootNode)
End If
End if
The above one is the parent Node. Is there any property I have to set for this ...
Help me...