Hi,
I have the following problem: I have a form with a RadTreeView:
The TreeView includes checkboxes for each node.
When the user selects a node and triggers a postback button, then on the server "CheckedNodes" property of the TreeView is empty (Count = 0).
Although ViewState is enabled globally and for the control is, the ViewState for the TreeView is not saved. For all other controls, however, it is saved.
What could be cause this problem? ViewState is enabled globally and there are no other scripts that affect the behavior.
My form is also identical with this ASP.NET example: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/checkboxes/defaultcs.aspx
(Except for the Ajax Manager)
Thanks in advance.
Greeting
Gregor Daskaloff
I have the following problem: I have a form with a RadTreeView:
<telerik:RadTreeView ID="dataTree" runat="server" CheckBoxes="True" TriStateCheckBoxes="True" Width="100%" MultipleSelect="True" Height="300px"> |
</telerik:RadTreeView> |
... and CS source |
foreach (RadTreeNode node in this.dataTree.CheckedNodes) // Count = 0 after Postback! |
{ |
... |
} |
The TreeView includes checkboxes for each node.
When the user selects a node and triggers a postback button, then on the server "CheckedNodes" property of the TreeView is empty (Count = 0).
Although ViewState is enabled globally and for the control is, the ViewState for the TreeView is not saved. For all other controls, however, it is saved.
What could be cause this problem? ViewState is enabled globally and there are no other scripts that affect the behavior.
My form is also identical with this ASP.NET example: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/checkboxes/defaultcs.aspx
(Except for the Ajax Manager)
Thanks in advance.
Greeting
Gregor Daskaloff