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

3 posts, 1 answers
  1. nallamani
    nallamani avatar
    28 posts
    Member since:
    Oct 2008

    Posted 07 Jan 2009 Link to this post

    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. Answer
    Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 08 Jan 2009 Link to this post

    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. :)

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. nallamani
    nallamani avatar
    28 posts
    Member since:
    Oct 2008

    Posted 09 Jan 2009 Link to this post

    Hi Serin


               Thanks ...I fixed it yesterday itself
Back to Top