This is a migrated thread and some comments may be shown as answers.
Checked property of a checked tree node is always set to false on postback
4 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shreejit
Top achievements
Rank 1
Shreejit asked on 24 Nov 2010, 09:45 AM
I have a tree view control with 3 levels (showcheckbox property is true) where we are binding the 1st level and all other 2 levels  will be loaded on demand (Ajax binding).

problem 1: when we check a node in any levels and on post in the controller the "Checked" property of the node is always set to "false".

Problem2: When we select a parent all corresponding childs also should get selected and vice-versa. This functionality was achived when the tree view is binded normally.Can this functionality be achieved when treeview is binded using ajax.

Please provide any pointers/help here as i am totally struck currently.

Note: i am latest source code (2010_3_1110) released by the telerik team on 10th  November.

Thanks & Regards,
Shreejit.



4 Answers, 1 is accepted

Sort by
0
Manoj
Top achievements
Rank 1
answered on 24 Nov 2010, 11:18 AM
I am also facing this issue. Please provide your help to fix this issue.
 
Thanks & Regards,
Manoj.
0
Georgi Krustev
Telerik team
answered on 24 Nov 2010, 04:39 PM
Hi,

Check this test project, which shows how to un/check child nodes and how to post them to the server. Check CheckBoxSupport.aspx page.

Best regards,
Georgi Krustev
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
0
Shreejit
Top achievements
Rank 1
answered on 25 Nov 2010, 12:02 PM
Thanks for the reply. 
In the test project attached by you has the tree view binded nomally.

In my case the treeview (3 levels) is binded using Ajax where level 2 & 3 will be loaded on demand.
On the page load none of the checkboxes will be checked. When i check any parent (level 1) and drill to the next level then 2nd level also should be checked. I can do this by setting the checked value to 'yes' for the child elements in the Ajaxloading method in the controller but the node.checked value of the parent is always 'False'.

Also when all the 3 levels are expanded & checked and now if i uncheck the 1st level all the next levels should be unchecked.
Please provide your help.

Thanks & Regards,
Shreejit.


 

0
Georgi Krustev
Telerik team
answered on 29 Nov 2010, 11:01 AM
Hello Shreejit,

Check this forum thread devoted on the same issue.

All the best,
Georgi Krustev
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
Shreejit
Top achievements
Rank 1
Answers by
Manoj
Top achievements
Rank 1
Georgi Krustev
Telerik team
Shreejit
Top achievements
Rank 1
Share this question
or