RadTreeList - add New row

2 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 20 Oct 2011 Link to this post


    Hi,

    I have a RadTreeList. It has two Parent item.First Item have three child Item.My requirement is to add a row after these  three childitem on the click (+ button) of the corresponding parentitem.When I use DetailTemplate ,new row is added each parent and each child.So I cannot use this method.How can I add a new row after the three childitem on the click of the corresponding parent Iem?

    Thanks In advance
  2. Tsvetina
    Admin
    Tsvetina avatar
    1875 posts

    Posted 24 Oct 2011 Link to this post

    Hi Sindu,

    When you click on a "+" button in a parent TreeListDataItem and do an insert, the new child item will be inserted after all other child items of the same parent. You can see this in our Insert/Update/Delete demos:
    TreeList / Form Template/User Control Edit Form

    If this is not how the control behaves on your side, you should make sure that you are correctly updating your database, since it is the parent key value used to decide which would be the parent of a certain item.

    All the best,
    Tsvetina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top