title: can't retrieve modified checked items from treeview - only shows state at load
body: <p>I'm populating a treeview in c# asp.net and have bound data to it, all well and displays as it should. my problem now is that i'm looking to save any modifications to the checkboxes i.e if a user clicks an additional box and saves but i the checked state will stay false.</p>
  
  <p>here's what i have so far which iterates through what was initially loaded and not what has been changed, I've tried many variations but haven't managed to get it working - anyone any ideas??</p>
  
  <pre><code>public void saveCheckedItems()
  {
  
      if (treeListItems.CheckedNodes.Count &gt; 0)
      {
          IList&lt;RadTreeNode&gt; allNodes = treeListItems.GetAllNodes();
  
          for (int i = 0; i &lt; allNodes.Count; i++)
          {
              RadTreeNode node = (RadTreeNode)allNodes[i];
              string fileid = node.Value.ToString();
              if (node.Checked == true)
              {
                  if (fileid.Length == 12)
                  {
                      saveTreeChanges(Page.Request.QueryString["ID"], fileid,connectionStr);
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>edit - </p>
  
  <p>creating treeview as follows</p>
  
  <pre><code>&lt;telerik:RadTreeView ID="treeListItems" runat="server" CheckBoxes="True" Height="320px"
                              TriStateCheckBoxes="true" CheckChildNodes="true" Skin="WebBlue" CssClass="table table-bordered" OnNodeDataBound="RadTreeView1_NodeDataBound" &gt;
                          &lt;/telerik:RadTreeView&gt;
  </code></pre>
  
  <p>binding data like this</p>
  
  <pre><code>public void loadTreeList()
          {
              DataTable dt = treeMan.getTreeList(connectionStr);
              treeListItems.DataTextField = "Description";
              treeListItems.DataValueField = "FieldID";
              treeListItems.DataFieldID = "FieldID";
              treeListItems.DataFieldParentID = "ParentID";
              treeListItems.DataSource = dt;
              treeListItems.DataBind();
              treeListItems.ExpandAllNodes();
          }
  </code></pre>
  
  <p>in the example im testing its a 3 tier tree and one element is checked on third tier. When i click more items only this already checked item is visible in the list</p>