Data Binding

The ContextMenu provides support for binding it to local data arrays and to remote data services.

Binding to Local Data Arrays

To populate the ContextMenu with local data, bind it to a local data array by using the Kendo UI Data Source component.

Example
View Source
Edit In Stackblitz  
Change Theme:

Binding to Remote Data Services

To initialize the ContextMenu by binding it to a remote data service, use the Kendo UI Data Source component. Remote data binding is appropriate for larger datasets, so that items are loaded on demand when displayed. You can use the DataSource for serving data from a variety of data services such as XML, JSON, and JSONP.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?