Custom Toolbar Buttons

2 posts, 0 answers
  1. John
    John avatar
    23 posts
    Member since:
    Jan 2015

    Posted 27 Feb 2015 Link to this post

    Q1: I need to have several custom buttons in the toolbar that will perform various actions such as "Insert Child", "Insert Sibling", "Edit", "Delete". The buttons should also be enabled/disabled based on node selection. How can I achieve this using the MVC extensions?

    Q2: Also, does the TreeList support drag and drop? I want to be able to capture the drag/drop to reorder by tree nodes. If not, I would add "Move Up" and "Move Down" custom buttons.

  2. Alexander Popov
    Alexander Popov avatar
    1445 posts

    Posted 03 Mar 2015 Link to this post

    Hello John,

    Yes, the toolbar supports adding Custom buttons. You can then bind their click event to custom JavaScript functions that can add or insert new items on certain level, relative to the selected row's dataItem.
    Drag and Drop is currently not supported out of the box. You can achieve similar behavior by integrating the Sortable widget, however that would require a custom solution.

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top