handle click event from kendomenu

2 posts, 0 answers
  1. W
    W avatar
    17 posts
    Member since:
    Aug 2014

    Posted 26 Feb 2015 Link to this post

    Hi,
    I am trying to create an event to the click of an item from the kendomenu (see bold part in example).
    I'm quite new to this and am using a datasource. Is this possible?

    window.onload = () => {
    $(document).ready(function () {
    //Main Ribbonbar Menu
    $("#RibbonMenu").kendoMenu(
    {
            
    dataSource: [
    {
    text: "Main", imageUrl: "icons/flight.png",
    items: [
    {
    text: "Flights", encoded: false, imageUrl: "icons/flight.png",
    items: [
    {
    text: "Operation Flights", imageUrl: "icons/flight.png", select: function (e) { alert('e');} },
    { text: "Flights", imageUrl: "icons/flight.png" },
    { text: "Timetable Flights", imageUrl: "icons/flight.png" }
    ]
    },
    {
  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 27 Feb 2015 Link to this post

    Hello,

    The event should be added on control's level and if you want it to be triggered for only some nodes you can check their text and trigger it accordingly as for example it is done in this sample.

    Regards,
    Plamen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top