码迷,mamicode.com
首页 > 其他好文 > 详细

【jQwidgets】jqxComboBox

时间:2015-02-04 11:13:24      阅读:429      评论:0      收藏:0      [点我收藏+]

标签:jqwidgets

var uptype_source = [{
        "TYPE_DESC": "总额度",
        "TYPE_VAL": "1"
    },
    {
        "TYPE_DESC": "预留额度",
        "TYPE_VAL": "3"
    }]
    jqxComboBoxInitialize_source("UPDATE_TYPE", uptype_source, "true", "TYPE_DESC", "TYPE_VAL", "请选择操作类型");


var value = $("#jqxComboBox").jqxComboBox('val');


function jqxComboBoxInitialize_source(comboBoxId, source, autoDDHeight, displayMember, valueMember, placeHolder) {
        $("#" + comboBoxId).jqxComboBox({
            theme: theme,
            source: source,
            autoDropDownHeight: autoDDHeight,
            displayMember: displayMember,
            valueMember: valueMember,
            width: 154,
            height: 22,
            animationType: 'fade',
            placeHolder: "选择操作类型",
            dropDownHorizontalAlignment: 'right'
        });
    }


function jqxComboBoxInitialize_width(comboBoxId, dictId, autoDropDownHeight, width, placeHolder) {
        $("#" + comboBoxId).jqxComboBox({
            theme: theme,
            autoDropDownHeight: autoDropDownHeight,
            source: queryDictSource(dictId),
            displayMember: "ENTR_DESC",
            valueMember: "ENTR_VAL",
            width: 150 || width,
            height: 22,
            animationType: 'fade',
            placeHolder: placeHolder,
            dropDownHorizontalAlignment: 'right'
        });
    };


【jQwidgets】jqxComboBox

标签:jqwidgets

原文地址:http://blog.csdn.net/nickroprak/article/details/43481981

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!