Inserting in TreeListView

2 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Aug 2011

    Posted 16 Jan 2012 Link to this post

    In TeeListView if I set CanUserInsertRowS = true and ShowInsertRow = true when I actually insert a row the new item is always inserted at the top level.  Is there a way to insert it as a child of the selected node or at the same level as the selected node?
  2. Nick
    Nick avatar
    593 posts

    Posted 19 Jan 2012 Link to this post

    Hi Mike,

    Unfortunately, the TreeListView doesn't support such functionality. You can try to subscribe to the AddingNewRow event, and determine the position of the new element there. Mind however that  this approach doesn't work in all cases, and it may become very difficult to implement.

    Hope this helps!

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top