This is a migrated thread and some comments may be shown as answers.

RadTreeList - add New row

1 Answer 139 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sindu
Top achievements
Rank 1
Sindu asked on 20 Oct 2011, 06:38 AM

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

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 24 Oct 2011, 11:04 AM
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
Tags
TreeList
Asked by
Sindu
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or