/** * Kendo UI v2016.1.112 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ (function (f, define) { define('kendo.list', [ 'kendo.data', 'kendo.popup' ], f); }(function () { var __meta__ = { id: 'list', name: 'List', category: 'framework', depends: [ 'data', 'popup' ], hidden: true }; (function ($, undefined) { var kendo = window.kendo, ui = kendo.ui, Widget = ui.Widget, keys = kendo.keys, support = kendo.support, htmlEncode = kendo.htmlEncode, activeElement = kendo._activeElement, ObservableArray = kendo.data.ObservableArray, ID = 'id', CHANGE = 'change', FOCUSED = 'k-state-focused', HOVER = 'k-state-hover', LOADING = 'k-loading', OPEN = 'open', CLOSE = 'close', CASCADE = 'cascade', SELECT = 'select', SELECTED = 'selected', REQUESTSTART = 'requestStart', REQUESTEND = 'requestEnd', WIDTH = 'width', extend = $.extend, proxy = $.proxy, isArray = $.isArray, browser = support.browser, isIE8 = browser.msie && browser.version < 9, quotRegExp = /"/g, alternativeNames = { 'ComboBox': 'DropDownList', 'DropDownList': 'ComboBox' }; var List = kendo.ui.DataBoundWidget.extend({ init: function (element, options) { var that = this, ns = that.ns, id; Widget.fn.init.call(that, element, options); element = that.element; options = that.options; that._isSelect = element.is(SELECT); if (that._isSelect && that.element[0].length) { if (!options.dataSource) { options.dataTextField = options.dataTextField || 'text'; options.dataValueField = options.dataValueField || 'value'; } } that.ul = $('