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

TreeView checkboxes not maintaining viewstate?

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 17 Mar 2013, 04:01 AM
I have a page with two tabs on it.  When clicking a tab there is an ajax postback.  On the first tab is a tree control with check boxes enabled.  The tree is loaded on page load if it is not a postback.  If I check some boxes in the tree, go to the second tab, then back to the first tab, all the items in the tree are unchecked.  What am I missing?

<telerik:RadTreeView ID="treeView" runat="server" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Text" DataValueField="ID" Skin="Outlook" CssClass="tree" CheckBoxes="true" OnClientNodeChecked="ClientNodeChecked" EnableViewState="true">
                                    <DataBindings><telerik:RadTreeNodeBinding CheckedField="Checked" Checkable="true" /></DataBindings>
                                        <NodeTemplate>......

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 19 Mar 2013, 05:25 PM
Hello,

Since I was not able to reproduce the described issue, I have attached a sample project that implements a very similar scenario. Could you please clarify what exactly is different in your project? Could you try to reproduce your issue with that project and guide me how can I replicate that behavior at my side. This way I will be able to inspect it at my side and be more helpful.


Kind regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or