title: telerik treeview asp.net mvc - link does not work for non root nodes
body: <p>I am using this code in my view:</p>
  
  <pre><code>@(Html.Telerik().TreeView()
  .Name("AjaxTreeView")
  .BindTo(Model, (item, category) =&gt;
  {
      // bind initial data - can be omitted if there is none
      item.Text = category.Name;
      item.Action("Details", "Categories", new { Id = category.Id });
      item.Value = category.Id.ToString();
      item.LoadOnDemand = category.NOChildren &gt; 0;
  })
  .DataBinding(dataBinding =&gt; dataBinding
          .Ajax().Select("_TreeViewAjaxLoading", "Categories")
  )
  )
  </code></pre>
  
  <p>It works fine (ajaxified expand and collapse). The action links work fine but only for the root nodes. My current controller that spews out JSON for the ajax load:</p>
  
  <pre><code>[Transaction]
  [HttpPost]
  public ActionResult _TreeViewAjaxLoading(TreeViewItem node)
  {
      int? ParentId = !string.IsNullOrEmpty(node.Value) ? (int?)Convert.ToInt32(node.Value) : null;
  
      var nodes = from item in CategoryRepository.GetChildren(ParentId)
          select new TreeViewItem
          {
              Text = item.Name,
              Value = item.Id.ToString(),
              LoadOnDemand = item.NOChildren &gt; 0
          };
      return new JsonResult { Data = nodes };
  }
  </code></pre>
  
  <p>does not set the action link. How can I set the action link here? Thanks.</p>
  
  <p>Christian</p>