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

  • SEARCH
  • Home
  • 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 7044593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:25:41+00:00 2026-05-28T02:25:41+00:00

I am having the tree with all my task which gets all the data

  • 0

I am having the tree with all my task which gets all the data from the database and i am able to display the data in the treeview panel.

Now I want to add Root node dynamically. ie. user when clicks the Add New Root Node button, I am able to create new Root in the Tree view panel.

I am able to create Child of the existing root panel but not the new Parent.

My code to add child to the already existing root node is

 text: 'Add new Root Node',
                iconCls: 'icon-save',
                handler: function () {
                    var task = taskStore.getRootNode().findChild('Name', 'Parent 1');

                    if(task) {
                        task.insertChild(0, new taskStore.model({
                            Name: 'Added as first child!',
                            PercentDone: 60,
                            StartDate : new Date(2010, 0, 6),
                            EndDate : new Date(2010, 0, 8)
                        })
                        );
                    }
                }

when I click on it everything is fine, but I want to create a New Root Node.
So what I had to change to my things happen.

Your’s sincerely
Yogendra Singh

  • 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-28T02:25:42+00:00Added an answer on May 28, 2026 at 2:25 am

    You can’t have more than one root. You can hide root node by setting rootVisible to false, to simulate such behaviour.
    Here is example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a PowerShell script which is walking a directory tree, and sometimes
Having a problem getting a TreeView control to display node images. The code below
I use Hibernate/Spring and a MySQL Database for my data management. Currently I display
I need to extract all links from a html document having text as the
I'm having a hard time finding tree data structures to use in ruby. Are
Hi all i am having a tree view as following Root ->Child1 ->Child2 ->Child3
I'm having problems converting a binary rooted tree to newick format. The full explanation
Im having a problem with python.. I have a binary tree node type: class
I am having trouble binding a Command that is generated up the UI tree
Having worked with Classic ASP for about 2 years now by creating a few

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.