Jsp调用combogrid,回显需用setText,不能用setValue,不然有些显示,有些不显示;
正确用法:
var rows = $('#tb').datagrid('getSelections');
var row0 = rows[0];
$('#tbxId').val(row0.id);
$('#cbxStaffNo').combogrid('clear');
$('#cbxStaffNo').combogrid("setText", row0.staffNo);
$('#cbxStaffNo').combogrid('readonly',true);
错误用法:
var rows = $('#tb').datagrid('getSelections');
$('#cbxStaffNo').combogrid("setValue", rows[0].staffNo);