Disable parent check boxes in RadTreeView

2 posts, 0 answers
  1. Tanya
    Tanya avatar
    4 posts
    Member since:
    Apr 2012

    Posted 18 Oct 2012 Link to this post

    i have a RadTreeView, but i only want check boxes on child nodes, is there a way to disable them for the parent items?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Oct 2012 Link to this post

    Hi Tanya,

    Try the following code to achieve your scenario.

    protected void RadTreeView1_NodeDataBound(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
      if (e.Node.Level == 0)
        e.Node.Checkable = false;

  3. DevCraft R3 2016 release webinar banner
Back to Top