Unplanned
Last Updated: 18 May 2020 08:35 by ADMIN
nicolaken
Created on: 11 May 2020 09:42
Category: TreeList
Type: Feature Request
1
Add a method in the treelist for inserting node at same level after or before a selected node like insertAfter(selectedNode) or insertBefore(selectednode)

We use the treelist to create our commercial offers. Each offer can have a node with lots of children at the same level.

The user should have the possibility to add a node at the same level of the selected item.

Now it is only possible to add a parent or a child in the first position and after that sorting the treelist. It is very confusing if the node list is quite long.

 

It will be nice to have two methods like inserAfter(selectedRow) or inserBefore(selectedRow) as for example the methods you have for the treenode

 

Marco

1 comment
ADMIN
Tsvetomir
Posted on: 18 May 2020 08:35

Hi Marco,

Thank you for taking the time to share your suggestions. 

In general, the addRow method is used for adding an item at the same level. The argument that the method accepts at present is only the parent row, based on which the newly added item's parentId will be set. However, this method will always insert the row in the first position.

Instead of adding a new method, we should consider adding a new parameter to the addRow() method. It will be responsible for holding the index at which the new item should be added. This way, the item will be inserted at a position convenient for the user.

 

Regards,
Tsvetomir
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.