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 7165085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:10:59+00:00 2026-05-28T14:10:59+00:00

can the popular javascript tree views (jstree, dynatree…) be setup to read data from

  • 0

can the popular javascript tree views (jstree, dynatree…) be setup to read data from an adjacency model?
say I have a table with classId, ClassName,ClassType,ParentClassId how can i fetch data for say the dynatree? considering the json expected by dyna tree should something like below

        {title: "Class1"},
        {title: "Class2", isFolder: true,
            children: [
                {title: "Class4"},
                {title: "Class5"}
            ]
        },
        {title: "Class3"}

I am using an asp.net asmx web service with linq to sql at the backend

  • 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-28T14:10:59+00:00Added an answer on May 28, 2026 at 2:10 pm

    The only thing you have to do to have nodes loaded on demand is to add “state” : “closed” to the nodes whose child nodes are going to be loaded on demand.

    You can have all your necessary attributes classId, ClassName,ClassType,ParentClassId attached to the node so then you can pass it through via ajax.
    ur code

    "json_data": {
          //elements to be displayed on the first load
          //everything with state = closed will be populated via ajax. 
          //         Note the ajax arguments
    
        "data": [{"data":'Class 1',
                  "attr":{"id":'kit1',
                          "ClassName":"ClassName",
                          "classId":"classId"},
                  "state" : "closed"},
                 {"data":'Class 2',
                  "attr":{"id":'kit2',
                          "ClassName":"ClassName",
                          "classId":"classId"},
                  "state" : "closed"}
                ],
        "ajax" : {
            url : "http://localhost/introspection/introspection/product",
            data : function(n) {
                     return {
                       "classId":$.trim(n.attr('classId')),
                       "ClassName":$.trim(n.attr('ClassName')),
                     }
                   }
        }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I call a javascript function from code behind? The most popular response
Are there any popular Mysql rss feeds you guys can recommend? IBM has random
Is there a place I can find Backus–Naur Form or BNF grammars for popular
Even though its origin stickmanlabs.com seems to be down, lightwindow remains a popular javascript
Recently a new framework for Javascript unit testing has been released. HERE Can anyone
Coming from Java, I'm wondering if a Java best practice applies to JavaScript. In
So, am I missing something here? All javascript engines in popular modern browsers (as
Can I get a list of popular blog engines written in python? google didn't
Now that JavaScript libraries like jQuery are more popular than ever, .js files are
Can someone please shed some light on how popular languages like Python, Ruby implements

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.