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

Context menu functionality.

3 Answers 145 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jose Mejia
Top achievements
Rank 1
Jose Mejia asked on 17 Oct 2013, 11:49 AM
Hi.

Is there any context menu functionality related to treeview control?
Do I have to use third  party libs to do that (e.g,  jquery ui), or there exists some ways to do that using kendoui controls?





3 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 17 Oct 2013, 01:57 PM
Hello Jose,

I am afraid that currently Kendo UI does not provide a context menu widget out of the box.  You could, however, use Kendo UI to create a custom context menu, as demonstrated in this Code Library project.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
InnovasiTeam
Top achievements
Rank 1
answered on 12 Apr 2014, 01:49 AM
Alexander, I am using the Kendo Angular UI framework and the treeview control.

Do you have any examples of a treeview context menu that work with the Kendo Angular UI framework? I tried the link in your post, but was not able to get it to work. Of course Telerik should provide this functionality with the Kendo tree, as well as a simple way to get a node ID in the Kendo Tree control. I have a way of getting the ID, but the context menu is proving to be quite a challenge. Is an integrated context menu being planned for the Kendo tree? For now, I would certainly appreciate an example of a working treeview context menu.
0
Alexander Popov
Telerik team
answered on 15 Apr 2014, 12:36 PM
Hello Eric,

I am afraid that we do not have any examples matching this criteria, since Angular-Kendo is a community-driven project and is not included in the Kendo UI support suites (see Getting Help). Implementing a context menu is not planned at this point, however I would suggest submitting this as a feature request at our feedback portal, so we and other members of the community can evaluate, comment on and vote for it. Highly voted suggestions are often implemented in future Kendo UI releases.
Getting a node's ID could be achieved by passing a TreeView's node element to the dataItem method. For example: 
treeview.dataItem(treeview.findByText("My item")).id
//or
treeview.dataItem($("#treeview li:first")).id


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
TreeView
Asked by
Jose Mejia
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
InnovasiTeam
Top achievements
Rank 1
Share this question
or