luckymaheshwari

TreeNodeCheckChanged and SelectedNodeChanged events of TreeView in ASP.NET 2 dosent fire when a chack is made or removed.

Is there any fix


Re: Windows Forms General TreeNodeCheckChanged and SelectedNodeChanged of TreeView dosen't fire

GavH

The checkchanged event does not autopost back from the client, and making a check or unchecking is not the same as selecting a node, so your check events all fire in sequence after the page is posted.

They are fired you can test it by putting a break point in the check event handler, debug, add a few checks and then click on a node to select it (which will post back) your check event handler will be called for each check that has changed.

The control would be designed this way to reduce round trips and server load/ client load times. It is not expected that checking a box would be a navigation instruction, so checks are processed in batches.

You may be looking at developing a custom control using a series of checkboxes with AutoPostBack set to true.

Regards





Re: Windows Forms General TreeNodeCheckChanged and SelectedNodeChanged of TreeView dosen't fire

Bhanu Prakash Nunna - MSFT

hi,

If you are still facing the problem, please post your question in the http://asp.net forums site as this forum is for Windows forms.net related questions only.

thank you,
bhanu.