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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:12:50+00:00 2026-06-08T16:12:50+00:00

I was having A LOT of issues with this, and doing something restful, so

  • 0

I was having A LOT of issues with this, and doing something restful, so i decided to create a workaround.

What I want to do, is that when the node expands, call a JS Function with the value of the clicked node. From there, i will fetch a query, return the result, and then use the builtin javascript to append nodes to the page.

I figure there is some way to go about this. I was thinking there was a “onNodeExpand” Attribute of the control which i could use to fire off the JS scripts.

THoughts?

  • 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-06-08T16:12:52+00:00Added an answer on June 8, 2026 at 4:12 pm

    The TreeView supports Load on Demand feature. Meaning the items of a node will be automatically downloaded from the server only when user expands a node. The server side code can be a custom logic to fill the child nodes which you are in control. Only setting you need to do is to let the tree view know what is the AJAX call it has to make.

    Take a look at the following example:

    http://demos.telerik.com/aspnet-mvc/treeview/ajaxloading

    In this example we are binding to Northwind database and building a tree of emplyoyees. Here is the code to define the treeview and set the load on demand on the treeview:

    <%= Html.Telerik().TreeView()
         .Name("TreeView")
         .DataBinding(dataBinding => dataBinding
             .Ajax().Select("_AjaxLoading", "TreeView")
         )
     %>
    

    In the above code, the TreeView has a DataBinding set to indicate that it needs to make a Ajax call to a action method named _AjaxLoading inside TreeViewController.

    if at all you are looking for on demand loading based on custom logic this is the simplest way to achieve it.

    You can bind the tree view from the client side too. The TreeView has an extensive client side eventing and client side API. I recommend you to go through the following demos:

    http://demos.telerik.com/aspnet-mvc/treeview/clientsideevents – this list all the client side events supported

    http://demos.telerik.com/aspnet-mvc/treeview/clientsideapi – this lists all the clent side API support for the treeview

    Hope i was able to answer your question.

    Lohith (Tech Evangelist, Telerik India)

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

Sidebar

Related Questions

OK, maybe I'm just having an off day. This seems like something a lot
I'm having a lot of trouble doing something very simple. I have a viewController
I'm having a lot of issues with SQL, I'm not sure how to do
I'm running into some issues with having a lot of UIImages in memory, so
I've been having a lot of trouble figuring this out. So I'm using inline
I'm having a lot of problems with this one. When I try using easy_install,
I am having a lot of IDs and I want to store them for
I'm having a lot of issues with trying to perform some core data operations
For a long time I've been having this issue that at a certain time
I'm having a lot of issues with MVC routing on IIS6. Lets say my

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.