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

    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
    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
    Plamen avatar
    3080 posts

    Posted 27 Feb 2015 Link to this post


    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.

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