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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:11:47+00:00 2026-06-13T22:11:47+00:00

I am using Kendo UI MVC extensions. I have one treeview on the page

  • 0

I am using Kendo UI MVC extensions. I have one treeview on the page

<script type="text/x-kendo-tmpl" id="template">
    <div class="form">
        <h3>${Name}</h3>
    </div>
</script>

@(Html.Kendo().ListView(Model)
      .Name("formsList")
      .ClientTemplateId("template")
      .TagName("div")
      .BindTo(Model)
      .DataSource(dataSource => dataSource
      .Model(model =>
          { 
              model.Id(p => p.Id);
              model.Field(p => p.Name);
              model.Field(p => p.Fields);
          }))
      .Pageable()
      .Selectable(selectable => selectable.Mode(ListViewSelectionMode.Single))
      .Events(events => events.Change("onChange")))

When I click on the item I want to show Fields property in my Model in the separate TreeView down below.

So far I have such code

<script type="text/javascript">
    function onChange(arg) {
        var dataSource = $("#formsList").data("kendoListView");
        var index = dataSource.select().index();
        var dataItem = dataSource.dataSource.view()[index];

        alert(dataItem.Fields);
    }
</script>

I can get the Fields property of the selected dataItem, but how should I pass it to the second TreeView?

  • 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-13T22:11:48+00:00Added an answer on June 13, 2026 at 10:11 pm

    In principle you need to assign you selected item as a Datasource of the second Kendo TreeView or directly to the Datasource used for you first TreeView. (you are asking about treeview and you example shows listview ?)

    <div id="treeview"></div>
    <script type="text/javascript">
    
    var myDataSource = new kendo.data.DataSource({
                            data: dataSource.dataSource.view()[index]});     
    $("#treeview").kendoTreeView({
                      dataSource: myDataSource 
                    }).data("kendoTreeView");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using mvc4. On one of my page, it has Kendo Grid. I
I have an asp.net MVC web app using Kendo UI Grids with client templates.
I have started a project using Kendo UI for MVC BETA and now I
I have created a mobile application using kendo Mobile UI's trial version in asp.net
I'm using editor from Kendo UI, so I have big problem. I don't know
I have have got a MVC 3 Project where I use a Kendo UI
I am using RPNiemeyer`s Knockout-Kendo.js library. I have a kendoui tabstrip. I looked through
Using System.Diagnostics.EventLog .NET type one can programmatically create logs into the Event Viewer application.
I am using knockout.js with Kendo-UI. I have this grid model: var GridModel =
How do we set row template for a single row while using Kendo Grid?

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.