Lookup Configuration

    An object defining configuration options for the dxLookup widget.

    accessKey

    Specifies a shortcut key that sets focus on the widget element.

    Type: String
    Default Value: null

    The accessKey option value is passed to the accesskey attribute of the actual HTML element of the widget.

    activeStateEnabled

    A Boolean value specifying whether or not the widget changes its state when interacting with a user.

    Type: Boolean
    Default Value: false

    This option is used when the widget is displayed on a platform whose guidelines include the active state change for widgets.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                activeStateEnabled: 'enableActiveState'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">activeStateEnabled</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'enableActiveState'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.enableActiveState = true;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        activeStateEnabled: enableActiveState
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">activeStateEnabled</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: enableActiveState
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        enableActiveState: ko.observable(true),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">activeStateEnabled</div>
            <div class="dx-field-value" id="stateSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#stateSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("activeStateEnabled", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    animation

    An object defining widget animation options.

    Default Value: undefined

    applyButtonText

    The text displayed on the Apply button.

    Type: String
    Default Value: "Done"

    applyValueMode

    Specifies the way an end-user applies the selected value.

    Type: String
    Default Value: "instantly"
    Accepted Values: 'useButtons'|'instantly'

    The option accepts the following values.

    • 'useButtons'
      Enables an end-user to apply the selected value or cancel the selection using the Apply and Cancel buttons respectively.

    • 'instantly'
      Applies the selected value immediately after a user clicks the required value in the drop-down menu. To cancel the selection, click outside the drop-down menu.

    attr

    Specifies HTML attributes applied to the inner input element of the widget.

    Type: Object
    Default Value: {}

    autoPagingEnabled

    Deprecated

    Use the pagingEnabled option instead.

    cancelButtonText

    The text displayed on the Cancel button.

    Type: String
    Default Value: "Cancel"

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            showDoneButton: true,
            showCancelButton: true,
            showClearButton: true,
            title: 'States',
            bindingOptions: {
                doneButtonText: 'doneText',
                cancelButtonText: 'cancelText',
                clearButtonText: 'clearText'
            }
        }"></div>
        <div class="dx-fieldset" style="text-align:left;">
            <div class="dx-field">
                <p><b>Done Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'doneText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Cancel Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'cancelText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Clear Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'clearText'
                    }
                }"></p>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.doneText = "Done";
        $scope.cancelText = "Cancel";
        $scope.clearText = "Clear";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true,
        doneButtonText: doneText,
        cancelButtonText: cancelText,
        clearButtonText: clearText,
        title: 'States'
    }"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p data-bind="dxTextBox: { value: doneText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p data-bind="dxTextBox: { value: cancelText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p data-bind="dxTextBox: { value: clearText }"></p>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        doneText: ko.observable("Done"),
        cancelText: ko.observable("Cancel"),
        clearText: ko.observable("Clear")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p id="doneTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p id="cancelTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p id="clearTextField"></p>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true
    });
    $("#doneTextField").dxTextBox({
        value: "Done",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("doneButtonText", e.value);
        }
    });
    $("#cancelTextField").dxTextBox({
        value: "Cancel",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("cancelButtonText", e.value);
        }
    });
    $("#clearTextField").dxTextBox({
        value: "Clear",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("clearButtonText", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    cleanSearchOnOpening

    Specifies whether or not the widget cleans the search box when the popup window is displayed.

    Type: Boolean
    Default Value: true

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                cleanSearchOnOpening: 'cleanSearch'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">cleanSearchOnOpening</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'cleanSearch'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.cleanSearch = true;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        cleanSearchOnOpening: cleanSearch
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">cleanSearchOnOpening</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: cleanSearch
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        cleanSearch: ko.observable(true),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">cleanSearchOnOpening</div>
            <div class="dx-field-value" id="cleanSearchSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#cleanSearchSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("cleanSearchOnOpening", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    clearButtonText

    The text displayed on the Clear button.

    Type: String
    Default Value: "Clear"

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            showDoneButton: true,
            showCancelButton: true,
            showClearButton: true,
            title: 'States',
            bindingOptions: {
                doneButtonText: 'doneText',
                cancelButtonText: 'cancelText',
                clearButtonText: 'clearText'
            }
        }"></div>
        <div class="dx-fieldset" style="text-align:left;">
            <div class="dx-field">
                <p><b>Done Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'doneText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Cancel Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'cancelText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Clear Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'clearText'
                    }
                }"></p>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.doneText = "Done";
        $scope.cancelText = "Cancel";
        $scope.clearText = "Clear";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true,
        doneButtonText: doneText,
        cancelButtonText: cancelText,
        clearButtonText: clearText,
        title: 'States'
    }"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p data-bind="dxTextBox: { value: doneText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p data-bind="dxTextBox: { value: cancelText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p data-bind="dxTextBox: { value: clearText }"></p>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        doneText: ko.observable("Done"),
        cancelText: ko.observable("Cancel"),
        clearText: ko.observable("Clear")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p id="doneTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p id="cancelTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p id="clearTextField"></p>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true
    });
    $("#doneTextField").dxTextBox({
        value: "Done",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("doneButtonText", e.value);
        }
    });
    $("#cancelTextField").dxTextBox({
        value: "Cancel",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("cancelButtonText", e.value);
        }
    });
    $("#clearTextField").dxTextBox({
        value: "Clear",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("clearButtonText", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    closeAction

    Deprecated

    Use the onClosed option instead.

    closeOnOutsideClick

    A Boolean value specifying whether or not a widget is closed if a user clicks outside of the overlaying window.

    Type: Boolean|function
    Return Value: Boolean
    The required option value.
    Default Value: false

    The function passed to this option enables you to specify a custom condition for widget closing. For instance, you can prevent closing if a user clicks a certain element.

    JavaScript
    var lookupOptions = {
        . . .,
        closeOnOutsideClick: function(e){
            return e.target !== $("#myElement").get()[0];
        }
    }

    contentReadyAction

    Deprecated

    Use the onContentReady option instead.

    dataSource

    A data source used to fetch data to be displayed by the widget.

    Default Value: null

    You can assign an array directly to this option, as well as use the Data Source provided by DevExtreme.

    If the dxLookup widget works with the data accessed via a DataSource instance wrapping a CustomStore, pay attention to the byKey option of the CustomStore instance, which is required for this widget. This option takes on a function used to get an item by a key.

    To display widget items, a default template can be used. This template is based on the data source fields that are listed in the Default Item Template section of the widget's API. Alternatively, you can implement a custom item template.

    See Also
    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            valueExpr: 'this',
            pagingEnabled: false,
            title: 'States',
            onValueChanged: updateStateInfo
        }"></div>
        <div class="info dx-state-invisible">
            <div class="info-image">
                <img style="margin:5px;" ng-attr-src="{{imagePath}}"/>
            </div>
            <div class="info-name">
                <b style="text-align:center; font-size:larger;" >{{name}}</b>
            </div>
            <p>Capital: <i>{{capital}}</i></p>
            <p>Population: <i>{{population}}</i></p>
            <p>Area: <i>{{area}}</i></p>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.name = "none";
        $scope.capital = "none";
        $scope.area = "none";
        $scope.population = "none";
        $scope.imagePath = "";
        $scope.updateStateInfo = function (e) {
            $(".info.dx-state-invisible").removeClass("dx-state-invisible");
            $scope.name = e.value.name;
            $scope.capital = e.value.capital;
            $scope.area = e.value.area;
            $scope.population = e.value.population;
            $scope.imagePath = e.value.imagePath;
        };
        $scope.lookupDataSource = new DevExpress.data.DataSource({
            store: [],
            paginate: false,
            map: function (dataItem) {
                dataItem.imagePath = "/Content/images/doc/15_1/PhoneJS/flags/" + dataItem.name.replace(" ", "") + ".gif";
                return dataItem;
            }
        });
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        padding: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info-image{
        display: inline-block;
        width: 40%;
        text-align: center;
    }
    .info-name{
        display: inline-block;
        float: right;
        margin-top: 15px;
        width: 60%;
        text-align: left;
    }
    .info p{
        margin: 5px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        valueExpr: 'this',
        pagingEnabled: false,
        title: 'States',
        onValueChanged: updateStateInfo
    }"></div>
    <div class="info dx-state-invisible">
        <div class="info-image">
            <img style="margin:5px;" data-bind="attr: { src: imagePath }"/>
        </div>
        <div class="info-name">
            <b style="text-align:center; font-size:larger;" data-bind="text: name"></b>
        </div>
        <p>Capital: <i data-bind="text: capital"></i></p>
        <p>Population: <i data-bind="text: population"></i></p>
        <p>Area: <i data-bind="text: area"></i></p>
    </div>
    
    var myViewModel = {
        name: ko.observable("none"),
        capital: ko.observable("none"),
        area: ko.observable("none"),
        population: ko.observable("none"),
        imagePath: ko.observable(""),
        lookupDataSource: new DevExpress.data.DataSource({
            store: [],
            paginate: false,
            map: function (dataItem) {
                dataItem.imagePath = "/Content/images/doc/15_1/PhoneJS/flags/" + dataItem.name.replace(" ", "") + ".gif";
                return dataItem;
            }
        }),
        updateStateInfo: function (e) {
            debugger
            $(".info.dx-state-invisible").removeClass("dx-state-invisible");
            this.name(e.value.name);
            this.capital(e.value.capital);
            this.area(e.value.area);
            this.population(e.value.population);
            this.imagePath(e.value.imagePath);
        }
    }
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    ko.applyBindings(myViewModel);
    
    .lookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        padding: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info-image{
        display: inline-block;
        width: 40%;
        text-align: center;
    }
    .info-name{
        display: inline-block;
        float: right;
        margin-top: 15px;
        width: 60%;
        text-align: left;
    }
    .info p{
        margin: 5px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="info dx-state-invisible">
        <div class="info-image">
            <img style="margin:5px;" id="image"/>
        </div>
        <div class="info-name">
            <b style="text-align:center; font-size:larger;" id="stateField"></b>
        </div>
        <p>Capital: <i id="capitalField"></i></p>
        <p>Population: <i id="populationField"></i></p>
        <p>Area: <i id="areaField"></i></p>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource({
        store: [],
        paginate: false,
        map: function (dataItem) {
            dataItem.imagePath = "/Content/images/doc/15_1/PhoneJS/flags/" + dataItem.name.replace(" ", "") + ".gif";
            return dataItem;
        }
    });
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        valueExpr: 'this',
        pagingEnabled: false,
        title: 'States',
        onValueChanged: function (e) {
            fillFields(e.value);
        }
    });
    var fillFields = function (data) {
        $(".info.dx-state-invisible").removeClass("dx-state-invisible");
        $("#stateField").text(data != null ? data.name : "none");
        $("#capitalField").text(data != null ? data.capital : "none");
        $("#populationField").text(data != null ? data.population : "none");
        $("#areaField").text(data != null ? data.area : "none");
        $("#image").attr("src", data != null ? data.imagePath : "")
    }
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        padding: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info-image{
        display: inline-block;
        width: 40%;
        text-align: center;
    }
    .info-name{
        display: inline-block;
        float: right;
        margin-top: 15px;
        width: 60%;
        text-align: left;
    }
    .info p{
        margin: 5px;
    }

    deferRendering

    Specifies whether widget content is rendered when the widget is shown or when rendering the widget.

    Type: Boolean
    Default Value: true

    If this option is set to true, widget content is rendered when showing the widget. Otherwise, widget content is rendered when rendering the widget.

    disabled

    A Boolean value specifying whether or not the widget can respond to user interaction.

    Type: Boolean
    Default Value: false

    Create an observable variable and assign it to this option to specify the availability of the widget at runtime.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                disabled: 'disabledValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">disabled</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'disabledValue'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.disabledValue = false;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        disabled: disabledValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">disabled</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: disabledValue
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        disabledValue: ko.observable(false),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">disabled</div>
            <div class="dx-field-value" id="disabledSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#disabledSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("disabled", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    displayExpr

    Specifies the name of the data source item field whose value is displayed by the widget.

    Type: String|function
    Default Value: undefined

    If the data source item is a simple object holding a value (string, numeric, Boolean, etc.), assign 'this' to the displayExpr option. If the item is a plain object item, assign the required field name or path to the option.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div id="myLookup" dx-lookup="{
            dataSource: lookupDataSource,
            title: 'States',
            onValueChanged: lookupValueChanged,
            bindingOptions: {
                displayExpr: 'displayExprValue',
                valueExpr: 'valueExprValue',
                displayValue: 'displayedText',
                value: 'currentValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">displayExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: displayExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'displayExprValue'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">valueExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: valueExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'valueExprValue'
                    }
                }"></div>
            </div>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideDisplayedText() }">
            <p>Displayed value</p>
            <p><b>{{displayedText}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideObjInfo() }">
            <p>Selected value</p>
            <p>Name: <b>{{nameValue}}</b></p>
            <p>Capital: <b>{{capitalValue}}</b></p>
            <p>Population: <b>{{populationValue}}</b></p>
            <p>Area: <b>{{areaValue}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideFieldInfo() }">
            <p>Selected value</p>
            <p>{{valueExprValue}}: <b>{{currentValue}}</b></p>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.displayExprValues = ["name", "capital", "population", "area"];
        $scope.valueExprValues = ["this", "name", "capital", "population", "area"];
        $scope.displayExprValue = "name";
        $scope.valueExprValue = "this";
        $scope.displayedText = "";
        $scope.currentValue = null;
        $scope.nameValue = "";
        $scope.capitalValue = "";
        $scope.populationValue = "";
        $scope.areaValue = "";
        $scope.lookupValueChanged = function (e) {
            if (e.value === null || $scope.valueExprValue !== "this")
                return;
            $scope.nameValue = e.value.name;
            $scope.capitalValue = e.value.capital;
            $scope.populationValue = e.value.population;
            $scope.areaValue = e.value.area;
        };
        $scope.exprChanged = function (e) {
            $("#myLookup").dxLookup("instance").reset();
        };
        $scope.hideDisplayedText = function () {
            return !$scope.currentValue;
        };
        $scope.hideObjInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue !== "this";
        };
        $scope.hideFieldInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue === "this";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        title: 'States',
        onValueChanged: lookupValueChanged,
        displayExpr: displayExprValue,
        valueExpr: valueExprValue,
        displayValue: displayedText,
        value: currentValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: displayExprValues,
                value: displayExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: valueExprValues,
                value: valueExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideDisplayedText() }">
        <p>Displayed value</p>
        <p><b data-bind="text: displayedText"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideObjInfo() }">
        <p>Selected value</p>
        <p>Name: <b data-bind="text: nameValue"></b></p>
        <p>Capital: <b data-bind="text: capitalValue"></b></p>
        <p>Population: <b data-bind="text: populationValue"></b></p>
        <p>Area: <b data-bind="text: areaValue"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideFieldInfo() }">
        <p>Selected value</p>
        <p><span data-bind="text: valueExprValue"></span>: <b data-bind="text: currentValue"></b></p>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        displayExprValues: ["name", "capital", "population", "area"],
        valueExprValues: ["this", "name", "capital", "population", "area"],
        displayExprValue: ko.observable("name"),
        valueExprValue: ko.observable("this"),
        displayedText: ko.observable(""),
        currentValue: ko.observable(),
        nameValue: ko.observable(""),
        capitalValue: ko.observable(""),
        populationValue: ko.observable(""),
        areaValue: ko.observable(""),
        lookupValueChanged: function(e){
            if(e.value === null || this.valueExprValue() !== "this")
                return;
            this.nameValue(e.value.name);
            this.capitalValue(e.value.capital);
            this.populationValue(e.value.population);
            this.areaValue(e.value.area);
        },
        exprChanged: function (e) {
            $("#myLookup").dxLookup("instance").reset();
        },
        hideDisplayedText: function () {
            return !this.currentValue();
        },
        hideObjInfo: function () {
            return !this.currentValue() || this.valueExprValue() !== "this";
        },
        hideFieldInfo: function () {
            return !this.currentValue() || this.valueExprValue() === "this";
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" id="displayExprSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" id="valueExprSelector"></div>
        </div>
    </div>
    <div class="info dx-state-invisible" id="displayedTextInfo">
        <p>Displayed value</p>
        <p><b id="displayedText"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedObjInfo">
        <p>Selected value</p>
        <p>Name: <b id="nameValue"></b></p>
        <p>Capital: <b id="capitalValue"></b></p>
        <p>Population: <b id="populationValue"></b></p>
        <p>Area: <b id="areaValue"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedFieldInfo">
        <p>Selected value</p>
        <p><span id="selectedFieldName"></span>: <b id="selectedFieldValue"></b></p>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        title: 'States',
        displayExpr: 'name',
        valueExpr: 'this',
        onValueChanged: function (e) {
            if (e.value === null) {
                $("#displayedTextInfo").addClass("dx-state-invisible");
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                return;
            }
            $("#displayedTextInfo").removeClass("dx-state-invisible");
            $("#displayedText").text($("#myLookup").dxLookup("instance").option("displayValue"));
            if ($("#myLookup").dxLookup("instance").option("valueExpr") === "this") {
                $("#selectedObjInfo").removeClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                $("#nameValue").text(e.value.name);
                $("#capitalValue").text(e.value.capital);
                $("#populationValue").text(e.value.population);
                $("#areaValue").text(e.value.area);
            }
            else {
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").removeClass("dx-state-invisible");
                $("#selectedFieldName").text($("#myLookup").dxLookup("instance").option("valueExpr"));
                $("#selectedFieldValue").text(e.value);
            }
        }
    });
    $("#displayExprSelector").dxSelectBox({
        dataSource: ["name", "capital", "population", "area"],
        value: "name",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("displayExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $("#valueExprSelector").dxSelectBox({
        dataSource: ["this", "name", "capital", "population", "area"],
        value: "this",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("valueExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }

    displayValue

    Returns the value currently displayed by the widget.

    Type: String
    Default Value: undefined

    The value you pass to this option does not affect widget behavior. Pass an observable variable to this option to get the value currently displayed by the widget.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div id="myLookup" dx-lookup="{
            dataSource: lookupDataSource,
            title: 'States',
            onValueChanged: lookupValueChanged,
            bindingOptions: {
                displayExpr: 'displayExprValue',
                valueExpr: 'valueExprValue',
                displayValue: 'displayedText',
                value: 'currentValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">displayExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: displayExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'displayExprValue'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">valueExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: valueExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'valueExprValue'
                    }
                }"></div>
            </div>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideDisplayedText() }">
            <p>Displayed value</p>
            <p><b>{{displayedText}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideObjInfo() }">
            <p>Selected value</p>
            <p>Name: <b>{{nameValue}}</b></p>
            <p>Capital: <b>{{capitalValue}}</b></p>
            <p>Population: <b>{{populationValue}}</b></p>
            <p>Area: <b>{{areaValue}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideFieldInfo() }">
            <p>Selected value</p>
            <p>{{valueExprValue}}: <b>{{currentValue}}</b></p>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.displayExprValues = ["name", "capital", "population", "area"];
        $scope.valueExprValues = ["this", "name", "capital", "population", "area"];
        $scope.displayExprValue = "name";
        $scope.valueExprValue = "this";
        $scope.displayedText = "";
        $scope.currentValue = null;
        $scope.nameValue = "";
        $scope.capitalValue = "";
        $scope.populationValue = "";
        $scope.areaValue = "";
        $scope.lookupValueChanged = function (e) {
            if (e.value === null || $scope.valueExprValue !== "this")
                return;
            $scope.nameValue = e.value.name;
            $scope.capitalValue = e.value.capital;
            $scope.populationValue = e.value.population;
            $scope.areaValue = e.value.area;
        };
        $scope.exprChanged = function (e) {
            $("#myLookup").dxLookup("instance").reset();
        };
        $scope.hideDisplayedText = function () {
            return !$scope.currentValue;
        };
        $scope.hideObjInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue !== "this";
        };
        $scope.hideFieldInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue === "this";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        title: 'States',
        onValueChanged: lookupValueChanged,
        displayExpr: displayExprValue,
        valueExpr: valueExprValue,
        displayValue: displayedText,
        value: currentValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: displayExprValues,
                value: displayExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: valueExprValues,
                value: valueExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideDisplayedText() }">
        <p>Displayed value</p>
        <p><b data-bind="text: displayedText"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideObjInfo() }">
        <p>Selected value</p>
        <p>Name: <b data-bind="text: nameValue"></b></p>
        <p>Capital: <b data-bind="text: capitalValue"></b></p>
        <p>Population: <b data-bind="text: populationValue"></b></p>
        <p>Area: <b data-bind="text: areaValue"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideFieldInfo() }">
        <p>Selected value</p>
        <p><span data-bind="text: valueExprValue"></span>: <b data-bind="text: currentValue"></b></p>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        displayExprValues: ["name", "capital", "population", "area"],
        valueExprValues: ["this", "name", "capital", "population", "area"],
        displayExprValue: ko.observable("name"),
        valueExprValue: ko.observable("this"),
        displayedText: ko.observable(""),
        currentValue: ko.observable(),
        nameValue: ko.observable(""),
        capitalValue: ko.observable(""),
        populationValue: ko.observable(""),
        areaValue: ko.observable(""),
        lookupValueChanged: function (e) {
            if (e.value === null || this.valueExprValue() !== "this")
                return;
            this.nameValue(e.value.name);
            this.capitalValue(e.value.capital);
            this.populationValue(e.value.population);
            this.areaValue(e.value.area);
        },
        exprChanged: function (e) {
            $("#myLookup").dxLookup("instance").reset();
        },
        hideDisplayedText: function () {
            return !this.currentValue();
        },
        hideObjInfo: function () {
            return !this.currentValue() || this.valueExprValue() !== "this";
        },
        hideFieldInfo: function () {
            return !this.currentValue() || this.valueExprValue() === "this";
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" id="displayExprSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" id="valueExprSelector"></div>
        </div>
    </div>
    <div class="info dx-state-invisible" id="displayedTextInfo">
        <p>Displayed value</p>
        <p><b id="displayedText"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedObjInfo">
        <p>Selected value</p>
        <p>Name: <b id="nameValue"></b></p>
        <p>Capital: <b id="capitalValue"></b></p>
        <p>Population: <b id="populationValue"></b></p>
        <p>Area: <b id="areaValue"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedFieldInfo">
        <p>Selected value</p>
        <p><span id="selectedFieldName"></span>: <b id="selectedFieldValue"></b></p>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        title: 'States',
        displayExpr: 'name',
        valueExpr: 'this',
        onValueChanged: function (e) {
            if (e.value === null) {
                $("#displayedTextInfo").addClass("dx-state-invisible");
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                return;
            }
            $("#displayedTextInfo").removeClass("dx-state-invisible");
            $("#displayedText").text($("#myLookup").dxLookup("instance").option("displayValue"));
            if ($("#myLookup").dxLookup("instance").option("valueExpr") === "this") {
                $("#selectedObjInfo").removeClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                $("#nameValue").text(e.value.name);
                $("#capitalValue").text(e.value.capital);
                $("#populationValue").text(e.value.population);
                $("#areaValue").text(e.value.area);
            }
            else {
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").removeClass("dx-state-invisible");
                $("#selectedFieldName").text($("#myLookup").dxLookup("instance").option("valueExpr"));
                $("#selectedFieldValue").text(e.value);
            }
        }
    });
    $("#displayExprSelector").dxSelectBox({
        dataSource: ["name", "capital", "population", "area"],
        value: "name",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("displayExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $("#valueExprSelector").dxSelectBox({
        dataSource: ["this", "name", "capital", "population", "area"],
        value: "this",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("valueExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }

    doneButtonText

    Deprecated

    Use the applyButtonText option instead.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            showDoneButton: true,
            showCancelButton: true,
            showClearButton: true,
            title: 'States',
            bindingOptions: {
                doneButtonText: 'doneText',
                cancelButtonText: 'cancelText',
                clearButtonText: 'clearText'
            }
        }"></div>
        <div class="dx-fieldset" style="text-align:left;">
            <div class="dx-field">
                <p><b>Done Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'doneText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Cancel Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'cancelText'
                    }
                }"></p>
            </div>
            <div class="dx-field">
                <p><b>Clear Button Text:</b></p>
                <p dx-text-box="{
                    bindingOptions: {
                        value: 'clearText'
                    }
                }"></p>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.doneText = "Done";
        $scope.cancelText = "Cancel";
        $scope.clearText = "Clear";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true,
        doneButtonText: doneText,
        cancelButtonText: cancelText,
        clearButtonText: clearText,
        title: 'States'
    }"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p data-bind="dxTextBox: { value: doneText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p data-bind="dxTextBox: { value: cancelText }"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p data-bind="dxTextBox: { value: clearText }"></p>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        doneText: ko.observable("Done"),
        cancelText: ko.observable("Cancel"),
        clearText: ko.observable("Clear")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset" style="text-align:left;">
        <div class="dx-field">
            <p><b>Done Button Text:</b></p>
            <p id="doneTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Cancel Button Text:</b></p>
            <p id="cancelTextField"></p>
        </div>
        <div class="dx-field">
            <p><b>Clear Button Text:</b></p>
            <p id="clearTextField"></p>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: true,
        showCancelButton: true,
        showClearButton: true
    });
    $("#doneTextField").dxTextBox({
        value: "Done",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("doneButtonText", e.value);
        }
    });
    $("#cancelTextField").dxTextBox({
        value: "Cancel",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("cancelButtonText", e.value);
        }
    });
    $("#clearTextField").dxTextBox({
        value: "Clear",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("clearButtonText", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    editEnabled

    Deprecated

    Use the fieldEditEnabled option instead.

    focusStateEnabled

    Specifies whether or not the widget supports the focused state and keyboard navigation.

    Type: Boolean
    Default Value: false
    Default for desktop: true

    fullScreen

    A Boolean value specifying whether or not to display the lookup in full-screen mode.

    Type: Boolean
    Default Value: false
    Default for windows phone 8: true
    Default for iPhone: true

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                fullScreen: 'fullScreenValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">fullScreen</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'fullScreenValue'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.fullScreenValue = true;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        fullScreen: fullScreenValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">fullScreen</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: fullScreenValue
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        fullScreenValue: ko.observable(true),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">fullScreen</div>
            <div class="dx-field-value" id="fullScreenSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#fullScreenSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("fullScreen", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    grouped

    A Boolean value specifying whether or not to group widget items.

    Type: Boolean
    Default Value: false

    If this option is set to 'true', the object assigned to the items option should include key and items properties. The key property specifies the group caption in the list. The items property represents an array listing group items.

    groupRender

    Deprecated

    Use the groupTemplate option instead.

    groupTemplate

    The name of the template used to display a group header.

    Type: String|function|DOM Node|jQuery
    Function parameters:
    itemData: Object
    The group object to be rendered.
    itemIndex: Number
    The index of the group to be rendered.
    itemElement: jQuery
    An HTML element of the group to be rendered.
    Return Value: String|DOM Node|jQuery
    A template name or a template container.
    Default Value: "group"

    NOTE: A binding context of a group template is the data source object that corresponds to the currently rendered group. So, you can bind template elements to the group object's fields directly (see the code above). To access another binding context within a group template, use the Knockout/Angular binding variables.

    height

    Specifies the height of the widget.

    Type: Number|String|function
    Return Value: Number|String
    The widget height.
    Default Value: undefined

    The option can hold a value of the following types.

    • number
      The height of the widget in pixels

    • string
      A CSS measurement of the widget height (e.g., "55px", "80%", "auto" and "inherit")

    • function
      A function returning the widget height (e.g., height:function(){ return baseHeight - 10 + "%"; })

    hiddenAction

    Deprecated

    Use the onClosed option instead.

    hint

    Specifies the text of the hint displayed for the widget.

    Type: String
    Default Value: undefined

    hoverStateEnabled

    A Boolean value specifying whether or not the widget changes its state when being hovered by an end user.

    Type: Boolean
    Default Value: true

    isValid

    Specifies whether the editor's value is valid.

    Type: Boolean
    Default Value: true

    You may need to use an editor to inform end users that an error occurred during the validation of a ViewModel field. In this instance, set the editor's isValid option to the isValid property value of the dxValidator that validated the ViewModel's field. In addition, set the editor's validationError option to the validationError property value of the dxValidator object.

    In the code below, the login specified by an end user is validated on the level of the ViewModel. If validation of the login value fails, a validation message is displayed on the Login editor.

    HTML
    <div data-bind="dxTextBox: { value: login, isValid: login.dxValidator.isValid, validationError: login.dxValidator.validationError, placeholder: 'Login' }"></div>
    JavaScript
    var viewModel = {
        login: ko.observable("").extend({
            dxValidator: {
                validationRules: [{ type: 'required', message: 'Login is required' }]
            }
        }),
        //...
    }

    The editor's isValid option, as well as the validationError option, should also be specified when using a custom validation engine. In this instance, the validation result will be displayed for the editor by the means of the DevExtreme Validation UI.

    See Also

    itemRender

    Deprecated

    Use the itemTemplate option instead.

    items

    An array of items displayed by the widget.

    Type: Array

    You can use the dataSource option instead. Unlike the items option, the dataSource option can take on the DataSource configuration object as well as a simple array.

    To display widget items, a default template can be used. This template is based on the data source fields that are listed in the Default Item Template section of the widget's API. Alternatively, you can implement a custom item template.

    See Also

    itemTemplate

    The template to be used for rendering items.

    Type: String|function|DOM Node|jQuery
    Function parameters:
    itemData: Object
    The item object to be rendered.
    itemIndex: Number
    The index of the item to be rendered.
    itemElement: jQuery
    An HTML element of the item to be rendered.
    Return Value: String|DOM Node|jQuery
    A template name or a template container.
    Default Value: "item"
    See Also

    NOTE: A binding context of an item template is the data source object that corresponds to the currently rendered item. So, you can bind template elements to the item object's fields directly (see the code above). To access another binding context within an item template, use the Knockout/Angular binding variables.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                itemTemplate: 'currentTemplate'
            }
        }">
            <div data-options="dxTemplate: { name: 'custom' }">
                <p>Name: <b>{{name}}</b></p>
                <p>Capital: <i>{{capital}}</i></p>
            </div>
        </div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">Use template</div>
                <div class="dx-field-value" dx-switch="{
                    value: false,
                    onValueChanged: useTemplateChanged
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.currentTemplate = "item";
        $scope.useTemplateChanged = function (e) {
            $scope.currentTemplate = e.value ? "custom" : "item";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        itemTemplate: currentTemplate
    }">
        <div data-options="dxTemplate: { name: 'custom' }">
            <p>Name: <b data-bind="text: name"></b></p>
            <p>Capital: <i data-bind="text: capital"></i></p>
        </div>
    </div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">Use template</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: false,
                onValueChanged: useTemplateChanged
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        currentTemplate: ko.observable("item"),
        useTemplateChanged: function (e) {
            this.currentTemplate(e.value ? "custom" : "item");
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">Use template</div>
            <div class="dx-field-value" id="useTemplateSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    var customTemplate = function (itemData, itemIndex, itemElement) {
        itemElement.append("<p>Name: <b>" + itemData.name + "</b></p>");
        itemElement.append("<p>Capital: <i >" + itemData.capital + "</i></p>");
    }
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#useTemplateSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("itemTemplate", e.value ? customTemplate : "item");
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    minFilterLength

    Deprecated

    Use the minSearchLength option instead.

    minSearchLength

    The minimum number of characters that must be entered into the text box to begin a search.

    Type: Number
    Default Value: 0

    This option makes sense only if the searchEnabled option is set to true.

    nextButtonText

    The text displayed on the button used to load the next page from the data source.

    Type: String
    Default Value: "More"

    noDataText

    The text or HTML markup displayed by the widget if the item collection is empty.

    Type: String
    Default Value: "No data to display"

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                noDataText: 'emptyText'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">noDataText</div>
                <div class="dx-field-value" dx-text-box="{
                    bindingOptions: {
                        value: 'emptyText'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.emptyText = "No data to display";
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        noDataText: emptyText
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">noDataText</div>
            <div class="dx-field-value" data-bind="dxTextBox: {
                value: emptyText
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        emptyText: ko.observable("No data to display"),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">noDataText</div>
            <div class="dx-field-value" id="noDataTextField"></div>
        </div>
    </div>
    
    $("#myLookup").dxLookup({
        dataSource: new DevExpress.data.DataSource([]),
        displayExpr: 'name',
        title: 'States'
    });
    $("#noDataTextField").dxTextBox({
        value: "No data to display",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("noDataText", e.value);
        }
    });
    
    .lookup{
        margin: 10px;
    }

    onClosed

    A handler for the closed event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action after a drop-down editor has been hidden.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            fullScreen: false,
            onOpened: lookupOpened,
            onClosed: lookupClosed
        }"></div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.lookupOpened = function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        };
        $scope.lookupClosed = function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        fullScreen: false,
        onOpened: lookupOpened,
        onClosed: lookupClosed
    }"></div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        lookupOpened: function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        },
        lookupClosed: function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        title: 'States',
        onOpened: function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        },
        onClosed: function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    onContentReady

    A handler for the contentReady event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    If data displayed by the widget is specified using a DataSource instance, the contentReady event fires each time the load() method of the DataSource instance is called as well as when widget content is ready. In this case, when you create the widget, the contentReady event is raised twice: when the widget's content is ready (at this moment, the widget does not display items) and when the DataSource is loaded (the widget displays the loaded items).

    onDisposing

    A handler for the disposing event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    onInitialized

    A handler for the initialized event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    Default Value: null

    Assign a function to perform a custom action when the widget is initialized.

    onItemClick

    A handler for the itemClick event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    itemElement: Object
    An HTML element of the item.
    Default Value: null

    Assign a function to perform a custom action when a widget item is clicked.

    To navigate to a specific URL when the itemClick event fires, assign that URL directly to this option.

    onOpened

    A handler for the opened event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action when the drop-down editor is shown.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            fullScreen: false,
            onOpened: lookupOpened,
            onClosed: lookupClosed
        }"></div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.lookupOpened = function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        };
        $scope.lookupClosed = function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        fullScreen: false,
        onOpened: lookupOpened,
        onClosed: lookupClosed
    }"></div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        lookupOpened: function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        },
        lookupClosed: function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        title: 'States',
        onOpened: function () {
            DevExpress.ui.notify("Lookup is opened", "success", 1000);
        },
        onClosed: function () {
            DevExpress.ui.notify("Lookup is closed", "error", 1000);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    onOptionChanged

    A handler for the optionChanged event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    name: String
    Specifies the name of the option whose value is changed.
    fullName: String
    Specifies a full name of the option whose value is changed. The full name is formed by concatenating the names of the options that are presented in the hierarchy of the given option. The names are delimited by commas.
    value: any
    Specifies a new value for the option.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action after an option of the component is changed.

    onPageLoading

    A handler for the pageLoading event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action before loading the next page in the lookup list if auto-paging is enabled.

    onPullRefresh

    A handler for the pullRefresh event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action before the lookup list is refreshed as a result of the "pull down to refresh" gesture.

    onScroll

    A handler for the scroll event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    jQueryEvent: jQuery.Event
    Specifies the jQuery event that caused the action execution.
    scrollOffset: Object
    Specifies the current scroll offset in the following format { top: topOffset, left: leftOffset }.
    reachedLeft: Boolean
    Indicates whether the container's left boundary is reached.
    reachedRight: Boolean
    Indicates whether the container's right boundary is reached.
    reachedTop: Boolean
    Indicates whether the container's top boundary is reached.
    reachedBottom: Boolean
    Indicates whether the container's bottom boundary is reached.
    Default Value: null

    Assign a function to perform a custom action on each scroll gesture.

    onSelectionChanged

    A handler for the selectionChanged event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    selectedItem: Object
    Provides access to the currently selected item.
    Default Value: null

    Assign a function to perform a custom action when the selection changes.

    onTitleRendered

    A handler for the titleRendered event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    titleElement: jQuery
    The HTML element of the item title.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    Default Value: null

    Assign a function to perform a custom action after a collection item title is rendered.

    onValueChanged

    A handler for the valueChanged event.

    Type: function
    Function parameters:
    e: Object
    Provides function parameters.
    Object structure:
    component: Object
    Provides access to the widget instance.
    element: jQuery
    An HTML element of the widget.
    model: Object
    Provides access to the data that is available for binding against the element. Available only in the Knockout and AngularJS approaches.
    value: Object
    Specifies the widget's new value.
    previousValue: Object
    Specifies the widget's previous value.
    itemData: Object
    The data that is bound to the new item.
    selectedItem: Object
    A deprecated field. Use the itemData field instead.
    jQueryEvent: jQuery.Event
    Specifies the jQuery event that caused the action execution.
    Default Value: null

    Assign a function to perform a custom action when the editor value changes.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            valueExpr: 'capital',
            title: 'States',
            fullScreen: false,
            onValueChanged: lookupValueChanged
        }"></div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.lookupValueChanged = function (e) {
            DevExpress.ui.notify("New lookup value is \"" + e.value + "\"", "success", 2000);
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        valueExpr: 'capital',
        title: 'States',
        fullScreen: false,
        onValueChanged: lookupValueChanged
    }"></div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        lookupValueChanged: function (e) {
            DevExpress.ui.notify("New lookup value is \"" + e.value + "\"", "success", 2000);
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        valueExpr: 'capital',
        title: 'States',
        onValueChanged: function (e) {
            DevExpress.ui.notify("New lookup value is \"" + e.value + "\"", "success", 2000);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    openAction

    Deprecated

    Use the onOpened option instead.

    opened

    Specifies whether or not the drop-down editor is displayed.

    Type: Boolean
    Default Value: false

    pageLoadingAction

    Deprecated

    Use the onPageLoading option instead.

    pageLoadingText

    Specifies the text shown in the pullDown panel, which is displayed when the widget is scrolled to the bottom.

    Type: String
    Default Value: "Loading..."

    pageLoadMode

    Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked.

    Type: String
    Default Value: "scrollBottom"
    Accepted Values: 'scrollBottom'|'nextButton'

    pagingEnabled

    Deprecated

    Use the dataSource.paginate option instead.

    Specifies whether or not the widget displays items by pages.

    Type: Boolean
    Default Value: undefined

    placeholder

    The text displayed by the widget when nothing is selected.

    Type: String
    Default Value: "Select"

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            showClearButton: true,
            bindingOptions: {
                placeholder: 'placeholderText'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">placeholder</div>
                <div class="dx-field-value" dx-text-box="{
                    bindingOptions: {
                        value: 'placeholderText'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.placeholderText = "Select state";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showClearButton: true,
        placeholder: placeholderText
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">placeholder</div>
            <div class="dx-field-value" data-bind="dxTextBox: {
                value: placeholderText
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        placeholderText: ko.observable("Select state")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">placeholder</div>
            <div class="dx-field-value" id="placeholderField"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        showClearButton: true,
        displayExpr: 'name',
        title: 'States',
        placeholder: "Select state"
    });
    $("#placeholderField").dxTextBox({
        value: "Select state",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("placeholder", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    popupHeight

    The height of the widget popup element.

    Type: Number|String|function
    Return Value: Number|String
    The required height of the widget popup element.
    Default Value: function() { return $(window).height() * 0.8 }
    Default for iPad: function() { return Math.min($(window).width(), $(window).height()) * 0.4; },

    Note that the option affects the actual popup size only if the fullScreen option is set to false. Otherwise, the popup is shown in a full screen mode.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            fullScreen: false,
            title: 'States',
            bindingOptions: {
                popupHeight: 'heightValue',
                popupWidth: 'widthValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">popupHeight, %</div>
                <div class="dx-field-value" dx-number-box="{
                    min: 50,
                    max: 90,
                    step: 5,
                    showSpinButtons: true,
                    value: 70,
                    onValueChanged: heightChanged
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">popupWidth, %</div>
                <div class="dx-field-value" dx-number-box="{
                    min: 50,
                    max: 90,
                    step: 5,
                    showSpinButtons: true,
                    value: 70,
                    onValueChanged: widthChanged
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.heightValue = "70%";
        $scope.widthValue = "70%";
        $scope.heightChanged = function (e) {
            $scope.heightValue = e.value + "%";
        };
        $scope.widthChanged = function (e) {
            $scope.widthValue = e.value + "%";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        fullScreen: false,
        title: 'States',
        popupHeight: heightValue,
        popupWidth: widthValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">popupHeight, %</div>
            <div class="dx-field-value" data-bind="dxNumberBox: {
                min: 50,
                max: 90,
                step: 5,
                showSpinButtons: true,
                value: 70,
                onValueChanged: heightChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">popupWidth, %</div>
            <div class="dx-field-value" data-bind="dxNumberBox: {
                min: 50,
                max: 90,
                step: 5,
                showSpinButtons: true,
                value: 70,
                onValueChanged: widthChanged
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        heightValue: ko.observable("70%"),
        widthValue: ko.observable("70%"),
        heightChanged: function (e) {
            this.heightValue(e.value + "%");
        },
        widthChanged: function (e) {
            this.widthValue(e.value + "%");
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">popupHeight, %</div>
            <div class="dx-field-value" id="heightSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">popupWidth, %</div>
            <div class="dx-field-value" id="widthSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        title: 'States',
        popupHeight: '70%',
        popupWidth: '70%'
    });
    $("#heightSelector").dxNumberBox({
        min: 50,
        max: 90,
        step: 5,
        showSpinButtons: true,
        value: 70,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("popupHeight", e.value + "%");
        }
    });
    $("#widthSelector").dxNumberBox({
        min: 50,
        max: 90,
        step: 5,
        showSpinButtons: true,
        value: 70,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("popupWidth", e.value + "%");
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    popupWidth

    The width of the widget popup element.

    Type: Number|String|function
    Return Value: Number|String
    The required width of the widget popup element.
    Default Value: function() {return $(window).width() * 0.8 }
    Default for iPad: function() { return Math.min($(window).width(), $(window).height()) * 0.4; }

    Note that the option affects the actual popup size only if the fullScreen option is set to false. Otherwise, the popup is shown in a full screen mode.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            fullScreen: false,
            title: 'States',
            bindingOptions: {
                popupHeight: 'heightValue',
                popupWidth: 'widthValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">popupHeight, %</div>
                <div class="dx-field-value" dx-number-box="{
                    min: 50,
                    max: 90,
                    step: 5,
                    showSpinButtons: true,
                    value: 70,
                    onValueChanged: heightChanged
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">popupWidth, %</div>
                <div class="dx-field-value" dx-number-box="{
                    min: 50,
                    max: 90,
                    step: 5,
                    showSpinButtons: true,
                    value: 70,
                    onValueChanged: widthChanged
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.heightValue = "70%";
        $scope.widthValue = "70%";
        $scope.heightChanged = function (e) {
            $scope.heightValue = e.value + "%";
        };
        $scope.widthChanged = function (e) {
            $scope.widthValue = e.value + "%";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        fullScreen: false,
        title: 'States',
        popupHeight: heightValue,
        popupWidth: widthValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">popupHeight, %</div>
            <div class="dx-field-value" data-bind="dxNumberBox: {
                min: 50,
                max: 90,
                step: 5,
                showSpinButtons: true,
                value: 70,
                onValueChanged: heightChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">popupWidth, %</div>
            <div class="dx-field-value" data-bind="dxNumberBox: {
                min: 50,
                max: 90,
                step: 5,
                showSpinButtons: true,
                value: 70,
                onValueChanged: widthChanged
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        heightValue: ko.observable("70%"),
        widthValue: ko.observable("70%"),
        heightChanged: function (e) {
            this.heightValue(e.value + "%");
        },
        widthChanged: function (e) {
            this.widthValue(e.value + "%");
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">popupHeight, %</div>
            <div class="dx-field-value" id="heightSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">popupWidth, %</div>
            <div class="dx-field-value" id="widthSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        title: 'States',
        popupHeight: '70%',
        popupWidth: '70%'
    });
    $("#heightSelector").dxNumberBox({
        min: 50,
        max: 90,
        step: 5,
        showSpinButtons: true,
        value: 70,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("popupHeight", e.value + "%");
        }
    });
    $("#widthSelector").dxNumberBox({
        min: 50,
        max: 90,
        step: 5,
        showSpinButtons: true,
        value: 70,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("popupWidth", e.value + "%");
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    position

    An object defining widget positioning options.

    Type: Object
    Default Value: undefined

    pulledDownText

    Specifies the text displayed in the pullDown panel when the widget is pulled below the refresh threshold.

    Type: String
    Default Value: "Release to refresh..."

    pullingDownText

    Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold.

    Type: String
    Default Value: "Pull down to refresh..."

    pullRefreshAction

    Deprecated

    Use the onPullRefresh option instead.

    pullRefreshEnabled

    A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture.

    Type: Boolean
    Default Value: false

    If the option is set to true, the widget data is refreshed each time you pull down and release widget contents.

    NOTE: The "pull down to refresh" gesture is not supported by desktop browsers and Windows Phone devices. You can use it only in mobile themes except the Windows Phone theme.

    refreshingText

    Specifies the text displayed in the pullDown panel while the widget is being refreshed.

    Type: String
    Default Value: "Refreshing..."

    rtlEnabled

    Specifies whether or not the current component supports a right-to-left representation.

    Type: Boolean
    Default Value: false

    If you need to switch the display of this DevExtreme component to right-to-left, enable a specifically designed configuration option - rtlEnabled. When this option is set to true, the text flows from right to left, and the layout the component's elements is reversed. To switch the entire application/site to a right-to-left representation, use the static DevExpress.rtlEnabled field.

    scrollAction

    Deprecated

    Use the onScroll option instead.

    searchEnabled

    A Boolean value specifying whether or not the search bar is visible.

    Type: Boolean
    Default Value: true

    To specify a field by which to search items, assign the required field name to the searchExpr configuration option of the DataSource object passed to the dataSource option of the widget.

    JavaScript
    var dataSource = new DevExpress.data.DataSource({
        store: myStore,
        searchExpr: "firstName"
    });

    If you need to search items by several field values, assign an array of field names to the searchExpr option of the DataSource.

    JavaScript
    var dataSource = new DevExpress.data.DataSource({
        store: myStore,
        searchExpr: ["firstName", "lastName"]
    });

    For more information on searching, refer to the Search Api section of the Data Layer article.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                searchEnabled: 'enableSearch'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">searchEnabled</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'enableSearch'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.enableSearch = true;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        searchEnabled: enableSearch
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">searchEnabled</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: enableSearch
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        enableSearch: ko.observable(true),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">searchEnabled</div>
            <div class="dx-field-value" id="searchSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States'
    });
    $("#searchSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("searchEnabled", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    searchExpr

    Specifies the name of a data source item field or an expression whose value is compared to the search criterion.

    Type: object:Search expression
    Default Value: null

    searchMode

    Specifies the binary operation used to filter data.

    Type: String
    Default Value: "contains"
    Accepted Values: "contains"|"startswith"

    searchPlaceholder

    The text that is provided as a hint in the lookup's search bar.

    Type: String
    Default Value: "Search"

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                searchPlaceholder: 'placeholderText'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label" style="width: 55%">searchPlaceholder</div>
                <div class="dx-field-value" style="width: 45%" dx-text-box="{
                    bindingOptions: {
                        value: 'placeholderText'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.placeholderText = "Type state name";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        searchPlaceholder: placeholderText
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label" style="width: 55%">searchPlaceholder</div>
            <div class="dx-field-value" style="width: 45%" data-bind="dxTextBox: {
                value: placeholderText
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        placeholderText: ko.observable("Type state name")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label" style="width: 55%">searchPlaceholder</div>
            <div class="dx-field-value" style="width: 45%" id="placeholderField"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        searchPlaceholder: "Type state name"
    });
    $("#placeholderField").dxTextBox({
        value: "Type state name",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("searchPlaceholder", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    searchTimeout

    Specifies the time delay, in milliseconds, after the last character has been typed in, before a search is executed.

    Type: Number
    Default Value: 500

    selectedItem

    Gets the currently selected item.

    Type: Object
    Default Value: null

    NOTE: This option is read-only.

    shading

    A Boolean value specifying whether or not the main screen is inactive while the lookup is active.

    Type: Boolean
    Default Value: true

    NOTE: This options makes sense only if the usePopover option is set to false. Otherwise, shading is always disabled.

    showCancelButton

    Specifies whether to display the Cancel button in the lookup window.

    Type: Boolean
    Default Value: true
    Default for windows phone 8: false

    The Cancel button cancels the attempt to change the lookup widget value.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                showDoneButton: 'showDone',
                showCancelButton: 'showCancel',
                showClearButton: 'showClear',
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">showDoneButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showDone'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showCancelButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showCancel'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showClearButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showClear'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.showDone = false;
        $scope.showCancel = true;
        $scope.showClear = false;
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: showDone,
        showCancelButton: showCancel,
        showClearButton: showClear
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showDone
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showCancel
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showClear
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        showDone: ko.observable(false),
        showCancel: ko.observable(true),
        showClear: ko.observable(false)
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" id="showDoneSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" id="showCancelSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" id="showClearSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        showDoneButton: false,
        showCancelButton: true,
        showClearButton: false,
        displayExpr: 'name',
        title: 'States'
    });
    $("#showDoneSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showDoneButton", e.value);
        }
    });
    $("#showCancelSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showCancelButton", e.value);
        }
    });
    $("#showClearSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showClearButton", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    showClearButton

    Specifies whether or not to display the Clear button in the lookup window.

    Type: Boolean
    Default Value: false

    The Clear button clears the currently chosen lookup value. The lookup window closes and the text specified by the placeholder option is shown in the lookup editor.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                showDoneButton: 'showDone',
                showCancelButton: 'showCancel',
                showClearButton: 'showClear',
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">showDoneButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showDone'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showCancelButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showCancel'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showClearButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showClear'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.showDone = false;
        $scope.showCancel = true;
        $scope.showClear = false;
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: showDone,
        showCancelButton: showCancel,
        showClearButton: showClear
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showDone
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showCancel
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showClear
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        showDone: ko.observable(false),
        showCancel: ko.observable(true),
        showClear: ko.observable(false)
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" id="showDoneSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" id="showCancelSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" id="showClearSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        showDoneButton: false,
        showCancelButton: true,
        showClearButton: false,
        displayExpr: 'name',
        title: 'States'
    });
    $("#showDoneSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showDoneButton", e.value);
        }
    });
    $("#showCancelSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showCancelButton", e.value);
        }
    });
    $("#showClearSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showClearButton", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    showDoneButton

    Deprecated

    Use the applyValueMode option instead.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            title: 'States',
            bindingOptions: {
                showDoneButton: 'showDone',
                showCancelButton: 'showCancel',
                showClearButton: 'showClear',
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">showDoneButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showDone'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showCancelButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showCancel'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">showClearButton</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'showClear'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.showDone = false;
        $scope.showCancel = true;
        $scope.showClear = false;
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        showDoneButton: showDone,
        showCancelButton: showCancel,
        showClearButton: showClear
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showDone
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showCancel
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: showClear
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        showDone: ko.observable(false),
        showCancel: ko.observable(true),
        showClear: ko.observable(false)
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">showDoneButton</div>
            <div class="dx-field-value" id="showDoneSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showCancelButton</div>
            <div class="dx-field-value" id="showCancelSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">showClearButton</div>
            <div class="dx-field-value" id="showClearSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        showDoneButton: false,
        showCancelButton: true,
        showClearButton: false,
        displayExpr: 'name',
        title: 'States'
    });
    $("#showDoneSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showDoneButton", e.value);
        }
    });
    $("#showCancelSelector").dxSwitch({
        value: true,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showCancelButton", e.value);
        }
    });
    $("#showClearSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("showClearButton", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    shownAction

    Deprecated

    Use the onOpened option instead.

    showNextButton

    Deprecated

    Use the pageLoadMode option instead.

    A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked.

    Type: Boolean
    Default Value: undefined

    showPopupTitle

    A Boolean value specifying whether or not to display the title in the popup window.

    Type: Boolean
    Default Value: true

    spellcheck

    Specifies whether or not the widget checks the inner text for spelling mistakes.

    Type: Boolean
    Default Value: false

    tabIndex

    Specifies the widget tab index.

    Type: Number
    Default Value: 0

    text

    The read-only option that holds the text displayed by the widget input element.

    Type: String

    title

    The title of the lookup window.

    Type: String
    Default Value: ""

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            bindingOptions: {
                title: 'titleText'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">title</div>
                <div class="dx-field-value" dx-text-box="{
                    bindingOptions: {
                        value: 'titleText'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.titleText = "States";
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: titleText
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">title</div>
            <div class="dx-field-value" data-bind="dxTextBox: {
                value: titleText
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        titleText: ko.observable("States")
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">title</div>
            <div class="dx-field-value" id="titleField"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        displayExpr: 'name',
        title: 'States',
        placeholder: "Select state"
    });
    $("#titleField").dxTextBox({
        value: "States",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("title", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    titleRender

    Deprecated

    Use the titleTemplate option instead.

    titleTemplate

    A template to be used for rendering the widget title.

    Type: String|function|DOM Node|jQuery
    Function parameters:
    titleElement: jQuery
    An HTML element containing the rendered title.
    Return Value: String|DOM Node|jQuery
    A template name or a template container.
    Default Value: "title"

    This option enables you to render the widget title depending on field values of the bound data model.

    HTML
    <div data-options="dxTemplate: { name:'myTitle' }">
        <h3><span data-bind="text: fullName"></span> info</h3>
    </div>

    NOTE: A binding context of a title template is the bound view model. So, you can bind template elements to the view model's fields directly (see the code above). To access another binding context within a title template, use the Knockout/Angular binding variables.

    useNativeScrolling

    Specifies whether or not the widget uses native scrolling.

    Type: Boolean
    Default Value: true
    Default for android below version 4: false

    usePopover

    Specifies whether or not to show lookup contents in a dxPopover widget.

    Type: Boolean
    Default Value: false
    Default for generic: true
    Default for ios: true

    The dxLookup widget can display its contents in a dxPopover widget only if the fullScreen mode is disabled. Otherwise, lookup contents are displayed within the dxPopup widget.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div class="lookup" dx-lookup="{
            dataSource: lookupDataSource,
            displayExpr: 'name',
            fullScreen: false,
            title: 'States',
            bindingOptions: {
                usePopover: 'usePopoverValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">usePopover</div>
                <div class="dx-field-value" dx-switch="{
                    bindingOptions: {
                        value: 'usePopoverValue'
                    }
                }"></div>
            </div>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.usePopoverValue = false;
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        displayExpr: 'name',
        fullScreen: false,
        title: 'States',
        usePopover: usePopoverValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">usePopover</div>
            <div class="dx-field-value" data-bind="dxSwitch: {
                value: usePopoverValue
            }"></div>
        </div>
    </div>
    
    var myViewModel = {
        usePopoverValue: ko.observable(false),
        lookupDataSource: new DevExpress.data.DataSource([])
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }
    <div class="lookup" id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">usePopover</div>
            <div class="dx-field-value" id="popoverSelector"></div>
        </div>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        fullScreen: false,
        displayExpr: 'name',
        title: 'States'
    });
    $("#popoverSelector").dxSwitch({
        value: false,
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("usePopover", e.value);
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    .lookup{
        margin: 10px;
    }

    validationError

    Holds the object that defines the error that occurred during validation.

    Type: Object
    Default Value: undefined

    You may need to use an editor to inform end users that an error occurred during the validation of a ViewModel field. In this instance, set the editor's isValid option to the isValid property value of the dxValidator that validated the ViewModel's field. In addition, set the editor's validationError option to the validationError property value of the dxValidator object.

    In the code, the login specified by an end user is validated on the level of the ViewModel. If validation of the login value fails, a validation message is displayed on the Login editor.

    HTML
    <div data-bind="dxTextBox: { value: login, isValid: login.dxValidator.isValid, validationError: login.dxValidator.validationError, placeholder: 'Login' }"></div>
    JavaScript
    var viewModel = {
        login: ko.observable("").extend({
            dxValidator: {
                validationRules: [{ type: 'required', message: 'Login is required' }]
            }
        }),
        //...
    }

    The editor's validationError option, as well as the isValid option, should also be specified when using a custom validation engine. In this instance, the validation result will be displayed for the editor by the means of the DevExtreme Validation UI.

    See Also

    validationMessageMode

    Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.

    Type: String
    Default Value: "auto"
    Accepted Values: 'auto'|'always'

    The following option values are possible:

    • auto
      The tooltip with the message is displayed when the editor is in focus.
    • always
      The tooltip with the message is not hidden when the editor loses focus.

    value

    The currently selected value in the widget.

    Type: Object
    Default Value: null

    This option returns a value of the specified field of the currently selected item object. The field whose value is returned by the value option is specified via the valueExpr option.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div id="myLookup" dx-lookup="{
            dataSource: lookupDataSource,
            title: 'States',
            onValueChanged: lookupValueChanged,
            bindingOptions: {
                displayExpr: 'displayExprValue',
                valueExpr: 'valueExprValue',
                displayValue: 'displayedText',
                value: 'currentValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">displayExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: displayExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'displayExprValue'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">valueExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: valueExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'valueExprValue'
                    }
                }"></div>
            </div>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideDisplayedText() }">
            <p>Displayed value</p>
            <p><b>{{displayedText}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideObjInfo() }">
            <p>Selected value</p>
            <p>Name: <b>{{nameValue}}</b></p>
            <p>Capital: <b>{{capitalValue}}</b></p>
            <p>Population: <b>{{populationValue}}</b></p>
            <p>Area: <b>{{areaValue}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideFieldInfo() }">
            <p>Selected value</p>
            <p>{{valueExprValue}}: <b>{{currentValue}}</b></p>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.displayExprValues = ["name", "capital", "population", "area"];
        $scope.valueExprValues = ["this", "name", "capital", "population", "area"];
        $scope.displayExprValue = "name";
        $scope.valueExprValue = "this";
        $scope.displayedText = "";
        $scope.currentValue = null;
        $scope.nameValue = "";
        $scope.capitalValue = "";
        $scope.populationValue = "";
        $scope.areaValue = "";
        $scope.lookupValueChanged = function (e) {
            if (e.value === null || $scope.valueExprValue !== "this")
                return;
            $scope.nameValue = e.value.name;
            $scope.capitalValue = e.value.capital;
            $scope.populationValue = e.value.population;
            $scope.areaValue = e.value.area;
        };
        $scope.exprChanged = function (e) {
            $("#myLookup").dxLookup("instance").reset();
        };
        $scope.hideDisplayedText = function () {
            return !$scope.currentValue;
        };
        $scope.hideObjInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue !== "this";
        };
        $scope.hideFieldInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue === "this";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        title: 'States',
        onValueChanged: lookupValueChanged,
        displayExpr: displayExprValue,
        valueExpr: valueExprValue,
        displayValue: displayedText,
        value: currentValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: displayExprValues,
                value: displayExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: valueExprValues,
                value: valueExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideDisplayedText() }">
        <p>Displayed value</p>
        <p><b data-bind="text: displayedText"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideObjInfo() }">
        <p>Selected value</p>
        <p>Name: <b data-bind="text: nameValue"></b></p>
        <p>Capital: <b data-bind="text: capitalValue"></b></p>
        <p>Population: <b data-bind="text: populationValue"></b></p>
        <p>Area: <b data-bind="text: areaValue"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideFieldInfo() }">
        <p>Selected value</p>
        <p><span data-bind="text: valueExprValue"></span>: <b data-bind="text: currentValue"></b></p>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        displayExprValues: ["name", "capital", "population", "area"],
        valueExprValues: ["this", "name", "capital", "population", "area"],
        displayExprValue: ko.observable("name"),
        valueExprValue: ko.observable("this"),
        displayedText: ko.observable(""),
        currentValue: ko.observable(),
        nameValue: ko.observable(""),
        capitalValue: ko.observable(""),
        populationValue: ko.observable(""),
        areaValue: ko.observable(""),
        lookupValueChanged: function (e) {
            if (e.value === null || this.valueExprValue() !== "this")
                return;
            this.nameValue(e.value.name);
            this.capitalValue(e.value.capital);
            this.populationValue(e.value.population);
            this.areaValue(e.value.area);
        },
        exprChanged: function (e) {
            $("#myLookup").dxLookup("instance").reset();
        },
        hideDisplayedText: function () {
            return !this.currentValue();
        },
        hideObjInfo: function () {
            return !this.currentValue() || this.valueExprValue() !== "this";
        },
        hideFieldInfo: function () {
            return !this.currentValue() || this.valueExprValue() === "this";
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" id="displayExprSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" id="valueExprSelector"></div>
        </div>
    </div>
    <div class="info dx-state-invisible" id="displayedTextInfo">
        <p>Displayed value</p>
        <p><b id="displayedText"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedObjInfo">
        <p>Selected value</p>
        <p>Name: <b id="nameValue"></b></p>
        <p>Capital: <b id="capitalValue"></b></p>
        <p>Population: <b id="populationValue"></b></p>
        <p>Area: <b id="areaValue"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedFieldInfo">
        <p>Selected value</p>
        <p><span id="selectedFieldName"></span>: <b id="selectedFieldValue"></b></p>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        title: 'States',
        displayExpr: 'name',
        valueExpr: 'this',
        onValueChanged: function (e) {
            if (e.value === null) {
                $("#displayedTextInfo").addClass("dx-state-invisible");
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                return;
            }
            $("#displayedTextInfo").removeClass("dx-state-invisible");
            $("#displayedText").text($("#myLookup").dxLookup("instance").option("displayValue"));
            if ($("#myLookup").dxLookup("instance").option("valueExpr") === "this") {
                $("#selectedObjInfo").removeClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                $("#nameValue").text(e.value.name);
                $("#capitalValue").text(e.value.capital);
                $("#populationValue").text(e.value.population);
                $("#areaValue").text(e.value.area);
            }
            else {
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").removeClass("dx-state-invisible");
                $("#selectedFieldName").text($("#myLookup").dxLookup("instance").option("valueExpr"));
                $("#selectedFieldValue").text(e.value);
            }
        }
    });
    $("#displayExprSelector").dxSelectBox({
        dataSource: ["name", "capital", "population", "area"],
        value: "name",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("displayExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $("#valueExprSelector").dxSelectBox({
        dataSource: ["this", "name", "capital", "population", "area"],
        value: "this",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("valueExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }

    valueChangeAction

    Deprecated

    Use the onValueChanged option instead.

    valueChangeEvent

    Specifies DOM event names that update a widget's value.

    Type: String
    Default Value: "input change keyup"

    The option takes on a string value representing a DOM event name or several DOM event names separated by a space. You can assign any DOM event name to this option. For example, "change", "blur", "input", "keyup", etc.

    valueExpr

    Specifies the name of a data source item field whose value is held in the value configuration option.

    Type: String|function
    Default Value: null

    Assign "this" to this option in order for the widget to return the entire selected object from the value option. Note that the "this" value is not supported by a widget bound to an ODataStore.

    If you leave the option unassigned, the value option holds the entire dataSource item corresponding to the selected value.

    Show Example:
    AngularJS
    Knockout
    jQuery
    <div ng-controller="demoController">
        <div id="myLookup" dx-lookup="{
            dataSource: lookupDataSource,
            title: 'States',
            onValueChanged: lookupValueChanged,
            bindingOptions: {
                displayExpr: 'displayExprValue',
                valueExpr: 'valueExprValue',
                displayValue: 'displayedText',
                value: 'currentValue'
            }
        }"></div>
        <div class="dx-fieldset">
            <div class="dx-field">
                <div class="dx-field-label">displayExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: displayExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'displayExprValue'
                    }
                }"></div>
            </div>
            <div class="dx-field">
                <div class="dx-field-label">valueExpr</div>
                <div class="dx-field-value" dx-select-box="{
                    dataSource: valueExprValues,
                    onValueChanged: exprChanged,
                    bindingOptions: {
                        value: 'valueExprValue'
                    }
                }"></div>
            </div>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideDisplayedText() }">
            <p>Displayed value</p>
            <p><b>{{displayedText}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideObjInfo() }">
            <p>Selected value</p>
            <p>Name: <b>{{nameValue}}</b></p>
            <p>Capital: <b>{{capitalValue}}</b></p>
            <p>Population: <b>{{populationValue}}</b></p>
            <p>Area: <b>{{areaValue}}</b></p>
        </div>
        <div class="info" ng-class="{ 'dx-state-invisible': hideFieldInfo() }">
            <p>Selected value</p>
            <p>{{valueExprValue}}: <b>{{currentValue}}</b></p>
        </div>
    </div>
    
    var myApp = angular.module('myApp', ['dx']);
    myApp.controller("demoController", function ($scope) {
        $scope.lookupDataSource = new DevExpress.data.DataSource([]);
        $scope.displayExprValues = ["name", "capital", "population", "area"];
        $scope.valueExprValues = ["this", "name", "capital", "population", "area"];
        $scope.displayExprValue = "name";
        $scope.valueExprValue = "this";
        $scope.displayedText = "";
        $scope.currentValue = null;
        $scope.nameValue = "";
        $scope.capitalValue = "";
        $scope.populationValue = "";
        $scope.areaValue = "";
        $scope.lookupValueChanged = function (e) {
            if (e.value === null || $scope.valueExprValue !== "this")
                return;
            $scope.nameValue = e.value.name;
            $scope.capitalValue = e.value.capital;
            $scope.populationValue = e.value.population;
            $scope.areaValue = e.value.area;
        };
        $scope.exprChanged = function (e) {
            $("#myLookup").dxLookup("instance").reset();
        };
        $scope.hideDisplayedText = function () {
            return !$scope.currentValue;
        };
        $scope.hideObjInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue !== "this";
        };
        $scope.hideFieldInfo = function () {
            return !$scope.currentValue || $scope.valueExprValue === "this";
        };
        $.get("/Content/data/states.txt", function (data) {
            for (var i = 0; i < data.length; i++) {
                $scope.lookupDataSource.store().insert(data[i]);
            }
            $scope.lookupDataSource.load();
        }, "json");
    });
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['myApp']);
    });
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup" data-bind="dxLookup: {
        dataSource: lookupDataSource,
        title: 'States',
        onValueChanged: lookupValueChanged,
        displayExpr: displayExprValue,
        valueExpr: valueExprValue,
        displayValue: displayedText,
        value: currentValue
    }"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: displayExprValues,
                value: displayExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" data-bind="dxSelectBox: {
                dataSource: valueExprValues,
                value: valueExprValue,
                onValueChanged: exprChanged
            }"></div>
        </div>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideDisplayedText() }">
        <p>Displayed value</p>
        <p><b data-bind="text: displayedText"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideObjInfo() }">
        <p>Selected value</p>
        <p>Name: <b data-bind="text: nameValue"></b></p>
        <p>Capital: <b data-bind="text: capitalValue"></b></p>
        <p>Population: <b data-bind="text: populationValue"></b></p>
        <p>Area: <b data-bind="text: areaValue"></b></p>
    </div>
    <div class="info" data-bind="css: { 'dx-state-invisible': hideFieldInfo() }">
        <p>Selected value</p>
        <p><span data-bind="text: valueExprValue"></span>: <b data-bind="text: currentValue"></b></p>
    </div>
    
    var myViewModel = {
        lookupDataSource: new DevExpress.data.DataSource([]),
        displayExprValues: ["name", "capital", "population", "area"],
        valueExprValues: ["this", "name", "capital", "population", "area"],
        displayExprValue: ko.observable("name"),
        valueExprValue: ko.observable("this"),
        displayedText: ko.observable(""),
        currentValue: ko.observable(),
        nameValue: ko.observable(""),
        capitalValue: ko.observable(""),
        populationValue: ko.observable(""),
        areaValue: ko.observable(""),
        lookupValueChanged: function (e) {
            if (e.value === null || this.valueExprValue() !== "this")
                return;
            this.nameValue(e.value.name);
            this.capitalValue(e.value.capital);
            this.populationValue(e.value.population);
            this.areaValue(e.value.area);
        },
        exprChanged: function (e) {
            $("#myLookup").dxLookup("instance").reset();
        },
        hideDisplayedText: function () {
            return !this.currentValue();
        },
        hideObjInfo: function () {
            return !this.currentValue() || this.valueExprValue() !== "this";
        },
        hideFieldInfo: function () {
            return !this.currentValue() || this.valueExprValue() === "this";
        }
    }
    ko.applyBindings(myViewModel);
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            myViewModel.lookupDataSource.store().insert(data[i]);
        }
        myViewModel.lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }
    <div id="myLookup"></div>
    <div class="dx-fieldset">
        <div class="dx-field">
            <div class="dx-field-label">displayExpr</div>
            <div class="dx-field-value" id="displayExprSelector"></div>
        </div>
        <div class="dx-field">
            <div class="dx-field-label">valueExpr</div>
            <div class="dx-field-value" id="valueExprSelector"></div>
        </div>
    </div>
    <div class="info dx-state-invisible" id="displayedTextInfo">
        <p>Displayed value</p>
        <p><b id="displayedText"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedObjInfo">
        <p>Selected value</p>
        <p>Name: <b id="nameValue"></b></p>
        <p>Capital: <b id="capitalValue"></b></p>
        <p>Population: <b id="populationValue"></b></p>
        <p>Area: <b id="areaValue"></b></p>
    </div>
    <div class="info dx-state-invisible" id="selectedFieldInfo">
        <p>Selected value</p>
        <p><span id="selectedFieldName"></span>: <b id="selectedFieldValue"></b></p>
    </div>
    
    var lookupDataSource = new DevExpress.data.DataSource([]);
    $("#myLookup").dxLookup({
        dataSource: lookupDataSource,
        title: 'States',
        displayExpr: 'name',
        valueExpr: 'this',
        onValueChanged: function (e) {
            if (e.value === null) {
                $("#displayedTextInfo").addClass("dx-state-invisible");
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                return;
            }
            $("#displayedTextInfo").removeClass("dx-state-invisible");
            $("#displayedText").text($("#myLookup").dxLookup("instance").option("displayValue"));
            if ($("#myLookup").dxLookup("instance").option("valueExpr") === "this") {
                $("#selectedObjInfo").removeClass("dx-state-invisible");
                $("#selectedFieldInfo").addClass("dx-state-invisible");
                $("#nameValue").text(e.value.name);
                $("#capitalValue").text(e.value.capital);
                $("#populationValue").text(e.value.population);
                $("#areaValue").text(e.value.area);
            }
            else {
                $("#selectedObjInfo").addClass("dx-state-invisible");
                $("#selectedFieldInfo").removeClass("dx-state-invisible");
                $("#selectedFieldName").text($("#myLookup").dxLookup("instance").option("valueExpr"));
                $("#selectedFieldValue").text(e.value);
            }
        }
    });
    $("#displayExprSelector").dxSelectBox({
        dataSource: ["name", "capital", "population", "area"],
        value: "name",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("displayExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $("#valueExprSelector").dxSelectBox({
        dataSource: ["this", "name", "capital", "population", "area"],
        value: "this",
        onValueChanged: function (e) {
            $("#myLookup").dxLookup("instance").option("valueExpr", e.value);
            $("#myLookup").dxLookup("instance").reset();
        }
    });
    $.get("/Content/data/states.txt", function (data) {
        for (var i = 0; i < data.length; i++) {
            lookupDataSource.store().insert(data[i]);
        }
        lookupDataSource.load();
    }, "json");
    
    #myLookup{
        margin: 10px;
    }
    .info {
        margin: 10px;
        border: solid 1px blue;
        background: #fed;
        color: #332;
    }
    .info p{
        margin: 5px;
    }
    .info p:first-child{
        text-align: center;
        font-size: larger;
        padding-bottom: 10px;
        border-bottom: solid 1px blue;
    }

    visible

    A Boolean value specifying whether or not the widget is visible.

    Type: Boolean
    Default Value: true

    width

    Specifies the width of the widget.

    Type: Number|String|function
    Return Value: Number|String
    The widget width.
    Default Value: undefined

    The option can hold a value of the following types.

    • numeric
      The widget width in pixels.
    • string
      A CSS measurement of the widget width (e.g., "55px", "80%", "auto" and "inherit").
    • function
      The function returning the widget width. For example, see the following code.

      JavaScript
      width: function () { 
          return baseWidth - 10 + "%";
      }