easyui-combogrid의 하단 데이터 선택을 취소하는 방법

5719 단어
<div style="height: 50px;line-height: 50px;">
    <label style="width: 135px"> label>
    <input id="select" name="select" editable="false" class="easyui-combogrid" style="width:200px" data-options="
    panelWidth: 440,
    idField: 'scriptId',
    textField: 'scriptName',
    url:'his/inputInfo/md01.html',  
    columns:[[ 
             {field:'aka060',title:' ( ) ',width:80},  
             {field:'aka063',title:' ',width:40},  
    ]]
    fitColumns: true
">
 JS :
<script type="text/javascript">
    $(function () {
        setTimeout(function () {
            var $grid = $('#select');
            $grid.combogrid('grid').datagrid('options').onClickRow = function(index, row) {
                if(oold==row.scriptId){
                    oold="";
                    $("#select").combogrid("setValue","");
                }else{
                    $grid.combo('setValue', row.scriptId);
                    oold=row.scriptId;
                }
                $grid.combo('hidePanel');
            }
        }, 1000);
    });
script>

좋은 웹페이지 즐겨찾기