TreeView checkboxes not maintaining viewstate?

2 posts, 0 answers
  1. James
    James avatar
    35 posts
    Member since:
    Apr 2010

    Posted 16 Mar 2013 Link to this post

    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>......
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 19 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top