set checkbox when adding node to tree

4 posts, 0 answers
  1. Hector
    Hector avatar
    7 posts
    Member since:
    Jan 2012

    Posted 07 Nov Link to this post

     var node = new RadTreeNode(valuedata, textdata);
                                           
    node.Checked = true;                      
                       
    rddtboxBuisness.EmbeddedTree.Nodes.Add(node);

     

    When adding nodes to the control I cant default the checkbox to true...

    am I doing anything wrong ?

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 10 Nov Link to this post

    Hello Hector,

    From the code provided it is not clear which event handler the node gets added to the DropDownTree in and also we don't know how the control is configured. I attached a sample runnable page, in which a node is added to the DropDownTree in the Page_Load event handler and it is correctly displayed as checked. Please modify the page so that it demonstrates the issue and post your modifications for further review.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hector
    Hector avatar
    7 posts
    Member since:
    Jan 2012

    Posted 10 Nov Link to this post

    the code was in the itemcreated event of the radgrid... I am trying to assigned the saved data to the dropdowntree when the users is editing the record .

            protected void rgTeammates_ItemCreated(object sender, GridItemEventArgs e)

    if (e.Item.IsInEditMode)
                {

     

    }

    }

  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 14 Nov Link to this post

    Hello Hector,

    I replied in the support ticket with the same subject you opened. If you have further questions I suggest we continue the discussion in it in order to avoid thread duplication. Any information from it that could be interesting or helpful to the community we can subsequently post in this thread as well. 

    Regards,
    Ivan Danchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top