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

check/uncheck checkbox from code effects parent node checkbox functionality

1 Answer 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anil
Top achievements
Rank 2
Anil asked on 05 May 2010, 12:20 PM
Hi,

I need an urgent help in tree-view control. I am not able to attach the  sample project which has the problem i am facing.
when i am binding a boolean property to checkstate using code behind and converter as suggested the parent node is behaving in a crazy manner.
If i check 2 out of 3 children under a parent node then parent node is showing state of checkbox as intermediate. But if i check the 3rd child also the state of parent node remains intermediate which should get changed to on(checked) or if i uncheck one of the child node then the parent node state changes to off(unchecked) which should remain in intermediate.
I think there is some bug in the control. but if there is some trick which can fix this will help me a lot. I tried to create a support ticket also but its showing some server error.
Thanks for any help.

thanks,
Anil

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 07 May 2010, 01:22 PM
Hello Anil,

Thank you for contacting us.

We suppose the problem is due to a binding to a boolean property. Please try to bind to a nullable-boolean one.

Attached you can find both a Silverlight and a WPF examples.

We hope this will help you.

Kind regards,
Ivan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Anil
Top achievements
Rank 2
Answers by
Ivan
Telerik team
Share this question
or