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

Custom Toolbar Buttons

1 Answer 273 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 27 Feb 2015, 04:52 PM
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.

Thanks,
--John

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 03 Mar 2015, 11:09 AM
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.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeList
Asked by
John
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or