This is a migrated thread and some comments may be shown as answers.

"+" Expand and "-" images are not displayed in the rad Tree

2 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
nallamani
Top achievements
Rank 1
nallamani asked on 07 Jan 2009, 02:09 PM
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...



2 Answers, 1 is accepted

Sort by
0
Accepted
Serrin
Top achievements
Rank 1
answered on 08 Jan 2009, 03:31 PM

Hey nallamani,

 

When you set EnableEmbeddedSkins="False" on the Treeview, you are removing the skin which sets the images for + and - on the treeview.  If you want, you can manually set the ImageURL and ExpandedImageURL properties to icons based on whether the node is a parent or not, but it's a lot easier when just using one of the Telerik skins. :)

0
nallamani
Top achievements
Rank 1
answered on 09 Jan 2009, 07:46 AM
Hi Serin


           Thanks ...I fixed it yesterday itself
Tags
TreeView
Asked by
nallamani
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
nallamani
Top achievements
Rank 1
Share this question
or