CheckBoxes Problem

6 posts, 0 answers
  1. Dogu Tumerdem
    Dogu Tumerdem avatar
    39 posts
    Member since:
    Sep 2006

    Posted 11 Mar 2008 Link to this post

    hi,

    in tree statemode checkboxes are not displayed starting from level 3. I am doing someting wrong ?

    dogu tumerdem
  2. Dogu Tumerdem
    Dogu Tumerdem avatar
    39 posts
    Member since:
    Sep 2006

    Posted 11 Mar 2008 Link to this post

    private void DataBindCategoryTree()
    {
        bindCategories.DataSource =     ViewContext.GetSubCategories();
        treeCategory.DataSource = bindCategories;
        treeCategory.DisplayMember = "Name";
        treeCategory.ValueMember = "OID";
        treeCategory.ParentIDMember = "OIDParent";
        treeCategory.CheckBoxes = true;
        treeCategory.TriStateMode = true;treeCategory.ExpandAll();
    }




    I am calling this function on form load. at that time no problem. when I add or remove a node I call this function again. but the sibling nodes of the added nodes loses checkboxes...


  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 11 Mar 2008 Link to this post

    Hello dogu.tumerdem,

    Thank you for writing.

    Unfortunately I was not able to reproduce this issue. Could you please provide more information on it? How do you add/remove the new nodes?

    I am looking forward to your reply. 


     
    Best wishes,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Brian
    Brian avatar
    19 posts
    Member since:
    Apr 2007

    Posted 08 Sep 2008 Link to this post

    I am having a similar issue, except the checkboxes are only displayed at the first level.

    This is how I am adding the nodes:

    newNode =

    New Telerik.WinControls.UI.RadTreeNode(nodeName)
    parentNode.Nodes.Add(newNode)


    What am I  doing wrong?

  6. Brian
    Brian avatar
    19 posts
    Member since:
    Apr 2007

    Posted 08 Sep 2008 Link to this post

    I just figured it out.  I need to use the following before assigning the node to the parent:

    newNode.ChildListType = Telerik.WinControls.UI.ChildListType.CheckList

  7. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 11 Sep 2008 Link to this post

    Hi Brian,

    Thank you for writing.

    I am glad about that you have resolve the issue.

    Could you share with us whether you set the RadTreeView.CheckBoxes property to true before applying a new node? This should force adding a check box to any new node without the need of setting ChildListType for every new node to CheckList.


    Kind regards,
    Martin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready