$('#areaGuid').combogrid({
            panelWidth: 300,
            idField: 'guid',
            textField: 'name',
            mode: 'remote',
            method: 'post',
            fitColumns: true,
            url: dourl + 'refreshArea.do',
            onHidePanel: function () {
                var _temp_SelectRow = $(this).combogrid("grid").datagrid('getSelected');
                var _var_Combgrid_SelectValue = $(this).combogrid('getValue');
                if (!_temp_SelectRow || _var_Combgrid_SelectValue != _temp_SelectRow.guid) {//没有选择或者选项不相等时清除内容
                    $(this).combogrid('setValue', '');
                }
            },
            onShowPanel: function () {
                $(this).combogrid("grid").datagrid("reload", {q: ''});
            },
            columns: [[
                {field: 'code', title: 'Code', width: 60},
                {field: 'name', title: 'Name', width: 100}
            ]]
        });

  1、如果文本框输入的数据,不是下拉框选择的数据,文本框数据清空

        2、增加onShowPannel事件是解决打开面板数据没有刷新

相关文章:

  • 2021-12-24
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-07-05
  • 2021-08-28
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案