Solved c# TreeView1_TreeNodeCheckChanged not firing

Posted on 2007-03-20
Last Modified: 2012-08-13
I am trying to run some code when a node is checked (specifically recursively checking child nodes)

BUt when I run the code nothign happens..I am using teh TreeView1_TreeNodeCheckChanged event handler and it is wired into the control..but it never runs the code...debugging stops dont ever get fired.

DOes this event only run on postback or something?

Should I be using a diferent event handler?
Question by:Prysson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 16

Expert Comment

ID: 18756347
You are correct.  You can catch this event only after postback.  You may try using the SelectedNodeChanged event.  It is fired when user clicks on the node.

Author Comment

ID: 18756709
Does checking a node cause the SelectedNodeChanged event to fire?

Author Comment

ID: 18756730
Never mind it doesnt..this wont work for me. I have to have the check boxes recursivley check and uncheck when other boxes are checked.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 16

Expert Comment

ID: 18756846
Do you mean you can allow users to check one item only?  If so, treeview seems to be not suitable for you.  Can you use radiobuttonlist?

Author Comment

ID: 18756930
no its not a single selection. I need child nodes to be checked when the parent node is checked and parent node to uncheck when a child node is unchecked. I have the code to do this but the only event handler that deals with the check boxes is the checkchanged EH...seems kind of retarded to me that the treeview doesnt have a means of firing and event when someone checks a check box.
LVL 16

Accepted Solution

Edwin_C earned 500 total points
ID: 18757098
I think this can be done at client side with javascript.  I found this in the internet

I have used the treeview from telerik which has this function using simple javascript.  See


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Amazon S3 .Net error 5 41
itextsharp with c# 3 18
Return array 3 20
Stop Git from being my repository 1 23
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question