Checked items not working

2 posts, 0 answers
  1. Ryan Ositis
    Ryan Ositis avatar
    1 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

    I'm attempting to use the tri-state checkboxes with the TreeView. I'm able to populate the TreeView easily enough, but I can't seem to get the checked items out. Here's the code:



    telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" TriStateCheckBoxes="True" CheckChildNodes="True" DataTextField="name">






    <asp:Button ID="expertiseFilterButton" runat="server" Text="Filter Faculty" OnClick="expertiseFilterButton_Click" />



    <asp:Literal ID="Literal1" runat="server"></asp:Literal>







    void expertiseFilterButton_Click(object sender, EventArgs e)




    string message = "";



    IList<RadTreeNode> nodeCollection = RadTreeView1.GetAllNodes();




    foreach (RadTreeNode node in nodeCollection)



    message += node.FullPath +

    " - " + node.Checked.ToString() + "<br />";



    Literal1.Text = message;



    No matter which or how many items I check, the node.Checked keeps coming back as False. Any ideas on what I am doing wrong?


  2. Yana
    Yana avatar
    5043 posts

    Posted 30 Sep 2009 Link to this post

    Hello Ryan,

    I've already answered to the support ticket regarding this issue.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top