• About Morris Development
  • A Focus for Cloud Efficiency
    • Microsoft Azure
    • Amazon Web Services
  • What our Clients Say
  • Our Products
    • PreschoolDB
    • WebinarDB
  • Contact Us

Morris Development

Custom System Development and Integration

June 17, 2015

Kendo Context Menus

When developing online databases, it’s often frustrating to lose the right-click ability that a normal desktop system would have. Instead, the user is presented with a bunch of options that are unrelated to the system – or things you’d prefer them not to have at all! Kendo offers a Context Menu feature that simple and straightforward.

Telerik has a nice page here: http://demos.telerik.com/kendo-ui/menu/context-menu that outlines the feature, but I find it best to start with the most basic rather than trying to show the full extent of the capabilities.

First, make sure you’ve got all the standard kendo includes in your header:

    
    
    
    

    
    

Then you’ve got to add in a div where you want the context menu to be in-effect.

Then create a context menu using an unordered list


  • Yahoo!
  • Morris Development

Finally, add the script to your on-doc-ready



        var initMenu = function () {       
            menu = $("#context-menu").kendoContextMenu({
                orientation:  "vertical",
                target: "#myArea",             
                animation: {
                    open: { effects: "fadeIn" },
                    duration: 500
                },
                select: function(e) {
                    // Do something more complicated on select
                }
            });
        };

        initMenu();
         

That’s it. Seriously, it’s that easy.

Now, if you want, there are a LOT of ways you can modify the context menu dynamically, but I always find it best to get started with the basics.

Article by MacGyver / Kendo

About MacGyver

I've worked with database systems for over 20 years, and started my own company in 2000. Almost all my business consists of internal database systems, either ERP or CRM. My programming is primarily in Angular / Microsoft C# and MS SQL.

About This Site

Morris Development has been specializing in internal database system design and integration since 1999. We provide long-term management and support of secure data systems for many businesses as well as developing the more complex code structures for ERP systems like Intellievent, Apidas, and AVMS.

This site is primarily for our developers to keep track up various technologies and updates that are used by Morris Development.

Training

Integrating Angular Microsite with .Net

Private Data Caching with Google Storage

Continuous Deployment for Production Releases?

Azure Websites – the perfect Angular host

Angular 2

  • Angular 2 Authentication
  • Angular Command Line Interface
  • Material Design for Angular
  • Using Observables in Angular 2

Mentors

  • Ben Nadel
  • Dan Wahlin
  • Deborah Kurata
  • John Papa

Staff

  • Dan Morris

Training

  • Google Development Courses
  • Microsoft Virtual Academy
  • PluralSight
  • Test Deep Links

© 2025 · Morris Development