Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:23:05+00:00 2026-05-31T05:23:05+00:00

I am using the following script to make a treeview: <% Html.Telerik().TreeView() .Name(TreeView) .Items(treeview

  • 0

I am using the following script to make a treeview:

<% Html.Telerik().TreeView()
.Name(“TreeView”)

    .Items(treeview =>
    {
        treeview.Add()
            .Text("PART 1 ")
            .Expanded(false)
            .Content(() =>
            {%>
         <ul>
        <li>text</li>
        <li>text</li>
        <li>text</li>
        <li>text</li>
    </ul>
    <%});

    }).Render();
    %>

Any idea how I can add a child node inside the ul section that can expand? Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:23:06+00:00Added an answer on May 31, 2026 at 5:23 am

    From the Telerik website:

    <%= Html.Telerik().TreeView()
            .Name("TreeView")
            .Items(item =>
            {
                item.Add()
                    .Text("Mail")
                    .ImageUrl("~/Content/PanelBar/FirstLook/mail.gif")
                    .ImageHtmlAttributes(new { alt = "Mail Icon" })
                    .Items(subItem =>
                    {
                        subItem.Add()
                               .Text("Personal Folders")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailPersonalFolders.gif")
                               .ImageHtmlAttributes(new { alt = "Personal Folders Icon" });
                        subItem.Add()
                               .Text("Deleted Items")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailDeletedItems.gif")
                               .ImageHtmlAttributes(new { alt = "Deleted Items Icon" });
                        subItem.Add()
                               .Text("Inbox")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailInbox.gif")
                               .ImageHtmlAttributes(new { alt = "Inbox Icon" });
                        subItem.Add()
                               .Text("My Mail")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailFolder.gif")
                               .ImageHtmlAttributes(new { alt = "My Mail Icon" });
                        subItem.Add()
                               .Text("Sent Items")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailSent.gif")
                               .ImageHtmlAttributes(new { alt = "Sent Items Icon" });
                        subItem.Add()
                               .Text("Outbox")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailOutbox.gif")
                               .ImageHtmlAttributes(new { alt = "Outbox Icon" });
                        subItem.Add()
                               .Text("Search Folders")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailSearch.gif")
                               .ImageHtmlAttributes(new { alt = "Search Folders Icon" });
                    });
                item.Add()
                    .Text("Contacts")
                    .ImageUrl("~/Content/PanelBar/FirstLook/contacts.gif")
                    .ImageHtmlAttributes(new { alt = "Contacts Icon" })
                    .Items((subItem) =>
                    {
                        subItem.Add()
                               .Text("My Contacts")
                               .ImageUrl("~/Content/PanelBar/FirstLook/contactsItems.gif")
                               .ImageHtmlAttributes(new { alt = "Contact Icon" });
                        subItem.Add()
                               .Text("Address Cards")
                               .ImageUrl("~/Content/PanelBar/FirstLook/contactsItems.gif")
                               .ImageHtmlAttributes(new { alt = "Contact Icon" });
                        subItem.Add()
                               .Text("Phone List")
                               .ImageUrl("~/Content/PanelBar/FirstLook/contactsItems.gif")
                               .ImageHtmlAttributes(new { alt = "Contact Icon" });
                        subItem.Add()
                               .Text("Shared Contacts")
                               .ImageUrl("~/Content/PanelBar/FirstLook/contactsItems.gif")
                               .ImageHtmlAttributes(new { alt = "Contact Icon" });
                    });
                item.Add()
                    .Text("Tasks")
                    .ImageUrl("~/Content/PanelBar/FirstLook/tasks.gif")
                    .ImageHtmlAttributes(new { alt = "Tasks Icon" })
                    .Items((subItem) =>
                    {
                        subItem.Add()
                               .Text("My Tasks")
                               .ImageUrl("~/Content/PanelBar/FirstLook/tasksItems.gif")
                               .ImageHtmlAttributes(new { alt = "Task Icon" });
                        subItem.Add()
                               .Text("Shared Tasks")
                               .ImageUrl("~/Content/PanelBar/FirstLook/tasksItems.gif")
                               .ImageHtmlAttributes(new { alt = "Task Icon" });
                        subItem.Add()
                               .Text("Active Tasks")
                               .ImageUrl("~/Content/PanelBar/FirstLook/tasksItems.gif")
                               .ImageHtmlAttributes(new { alt = "Task Icon" });
                        subItem.Add()
                               .Text("Completed Tasks")
                               .ImageUrl("~/Content/PanelBar/FirstLook/tasksItems.gif")
                               .ImageHtmlAttributes(new { alt = "Task Icon" });
                    });
                item.Add()
                    .Text("Notes")
                    .ImageUrl("~/Content/PanelBar/FirstLook/notes.gif")
                    .ImageHtmlAttributes(new { alt = "Notes Icon" })
                    .Items((subItem) =>
                    {
                        subItem.Add()
                               .Text("My Notes")
                               .ImageUrl("~/Content/PanelBar/FirstLook/notesItems.gif")
                               .ImageHtmlAttributes(new { alt = "Note Icon" });
                        subItem.Add()
                               .Text("Notes List")
                               .ImageUrl("~/Content/PanelBar/FirstLook/notesItems.gif")
                               .ImageHtmlAttributes(new { alt = "Note Icon" });
                        subItem.Add()
                               .Text("Shared Notes")
                               .ImageUrl("~/Content/PanelBar/FirstLook/notesItems.gif")
                               .ImageHtmlAttributes(new { alt = "Note Icon" });
                        subItem.Add()
                               .Text("Archive")
                               .ImageUrl("~/Content/PanelBar/FirstLook/notesItems.gif")
                               .ImageHtmlAttributes(new { alt = "Note Icon" });
                    });
                item.Add()
                    .Text("Folders List")
                    .ImageUrl("~/Content/PanelBar/FirstLook/foldersList.gif")
                    .ImageHtmlAttributes(new { alt = "Folders List Icon" })
                    .Items((subItem) =>
                    {
                        subItem.Add()
                               .Text("My Client.Net")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailFolder.gif")
                               .ImageHtmlAttributes(new { alt = "Folder List Icon" });
                        subItem.Add()
                               .Text("My Profile")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailFolder.gif")
                               .ImageHtmlAttributes(new { alt = "Folder List Icon" });
                        subItem.Add()
                               .Text("My Support Tickets")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailFolder.gif")
                               .ImageHtmlAttributes(new { alt = "Folder List Icon" });
                        subItem.Add()
                               .Text("My Licenses")
                               .ImageUrl("~/Content/PanelBar/FirstLook/mailFolder.gif")
                               .ImageHtmlAttributes(new { alt = "Folder List Icon" });
                    });
            })
    %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following script to request new content to a file called index.html:
I am using the following code as part of an autocomplete script to avoid
I'm using the following JavaScript code: <script language=JavaScript1.2 type=text/javascript> function CreateBookmarkLink(title, url) { if
I'm using the following jQuery plugins (along with the jQuery plugin): <script type=text/javascript src=scripts/jquery.scrollTo-min.js></script>
I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script
I'm using the following jQuery script to send a 'Make' parameter to filter my
I'm using the following script to initiate file downloads: if (file_exists($newfilename)) { header('Content-Description: File
I am using the following script to get the POST TITLE and the CONTENT
I'm using following define to make my setup script flexible according to the build
I'm using the following script in my website in order to create pagination next-previous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.