This is a migrated thread and some comments may be shown as answers.

Parent node always checked in NodeCheck event handler when using TriStateCheckboxes?

1 Answer 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Minnow
Top achievements
Rank 1
Minnow asked on 07 Dec 2010, 04:09 PM
Want to make sure I understand how this is supposed to work.

When my RadTreeView is not configured to use TSCB, on postback, in the NodeCheck  event handler, e.Node.Checked returns the new value of the check state (true if checked, false otherwise).   If true == e.Node.Checked, I check all child nodes;  if not checked, I uncheck all child nodes.

However, when I enable TSCB, on postback, in the NodeCheck event handler, e.Node.Checked is always true, even if the node was already checked and the event fired because I unchecked it.

What am I missing?

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 10 Dec 2010, 01:46 PM
Hello Minnow,

I was not able to reproduce the problem you experience. In my test-case it was always the new value with or without TSCB.

Could you, please, share some code reproducing the issue that you illustrate?


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
Minnow
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or