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
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