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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:44:21+00:00 2026-05-31T20:44:21+00:00

I am using asp.net mvc 3 and looking at possibly using dynatree. I am

  • 0

I am using asp.net mvc 3 and looking at possibly using dynatree. I am in the research page still and trying to figure out some outstanding questions before I start actually implementing it.

Dynatree with ASP.NET MVC

I been looking at the above post and how @Matt Penner renders his tree view and in my opion looks cleaner than the accepted answer.

One question I have though is how do you post the checked options to the server? When it gets rendered it seems to all be bullet tags that get converted to look like checkboxes.

So I am wondering how do I serialize that data? Right now I have a form and when the user hits submit I do a jquery serializeArrary and send it via ajax to the server where it gets binded to my View Model.

How would I do it for the choices selected in the tree view?

I am also not clear on how I could render the tree view with default checked nodes based on the example Matt Penner has.

Thanks

  • 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-31T20:44:22+00:00Added an answer on May 31, 2026 at 8:44 pm

    The way Matt Penner renders the tree is simpler and cleaner…but since ha has not built “models” that represents the tree data, it is not easy to use his approach to read back the tree. The tree must be read back into a “model”, and since it is a tree such model must be recursive as the one shown in the first example.

    However, if you give adequate names to the checkboxes you can read them back. In fact model binding on post is done by using a name convention, so for instance a checkbox named:

    Children[2].Children[0].MyCheckBox

    Will be read back in the:
    third children first level => first chidren second level
    model of the herarchical model you have to build to receive the posted data.

    However this approach works well, if the user doesn’t modify the structure of the tree, because in such a case the checkbox named Children[2].Children[0].MyCheckBox may come to a different place that its name suggests, that is it would be no more the 3 child firts level, and might become, for instance the 5th child first level…but its name doesn’t change.

    On the other side if you serialize the data on the client and then send them in json to the sever, you will be able to take into account also tree modifications.

    That said give a look to the TreeView of the Mvc Controls Toolkit (I am the coordinator of the project)…it do already all job for you,and you can use a generic template for each node, that is you can put everuthing you like in each node:

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

Sidebar

Related Questions

I'm looking at using ASP.NET MVC for a current project but I have some
I am using asp.net mvc 3 client validation. I am trying to do some
I've been looking at using ExtJS Direct with ASP.NET MVC but it doesn't seem
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
Using ASP.NET MVC + jQuery : I need to use some values owned by
I'm using asp.NET MVC, and am looking at the JQuery autocomplete plugin for what
I'm looking at building a templating engine for my website. I'm using ASP.NET MVC
Using ASP.Net MVC 1.0 I have a form with some input control on it.
Im looking to use MVCMailer to send emails using asp.net mvc 3 with razor.
Using ASP.NET MVC there are situations (such as form submission) that may require a

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.