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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:57:45+00:00 2026-05-13T07:57:45+00:00

I using TreeView with ShowCheckBoxes=All in an ASP.NET 3.5 web application and for some

  • 0

I using TreeView with ShowCheckBoxes=”All” in an ASP.NET 3.5 web application and for some reason the checked nodes are not returned in order. Lets say I have nodes A,B,C and I select B and C and hit the save button and when I check the CheckedNodes property of the Treeview the checked nodes are in order (B,C). But the next time when I go back to the page and select the node A the order is being returned B,C,A. What could be the reason for this behavior?

  • 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-13T07:57:45+00:00Added an answer on May 13, 2026 at 7:57 am

    CheckedNodes is a TreeNodeCollection which just implements ICollection. When the checkChanged event fires, it probably just adds the tree nodes to the CheckedNodes collection.

    Nothing I can see on MSDN implies that you should assume the nodes would be ordered. All it says is:

    Each time the page is posted to the
    server, the CheckedNodes collection is
    automatically populated with the
    selected nodes.

    From your experiment, it seems safe to assume that on the second postback, it simply adds any new checked nodes to the collection, rather than clearing the collection and re-adding everything.

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

Sidebar

Related Questions

I am trying to create a treeview dynamically using c# and asp.net. I have
Right now I am using a ASP.NET TreeView with checkboxes enabled in my page,
im using treeview in asp.net treeview like *parent @child1 .child2 *parent .child if i
Im using treeview in asp.net how can i check if parent contains childnodes in
The display is awful; there are some spaces between lines. I'm using a asp:treeview
I am using jqgrid treeview with an asp.net-mvc backend and i see the GUI
Is it possible to sort a TreeView collection using IComparer<T> and not IComparer ?
I am attempting to show a specific form using a treeview control, the nodes
We're using an asp:TreeView configured with lazy loading. The callback method assigned for OnTreeNodePopulate
I have a page using a Treeview server control like so: <asp:TreeView ID=uxTreeView ShowExpandCollapse=True

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.