组合框的jquery easyui数据网格编辑器未使用grails加载

组合框的jquery easyui数据网格编辑器未使用grails加载,grails,datagrid,combobox,editor,jquery-easyui,Grails,Datagrid,Combobox,Editor,Jquery Easyui,我在grails中使用Jquery Easyui Datagrid这是我在GSP文件中创建网格的代码:- <table class="easyui-datagrid" data-options="fit:true,idField:'id',pageNmber:1,pageList:[25,50,75,100]" pagination="true" id="importGrid"> <thead> <tr

我在grails中使用Jquery Easyui Datagrid这是我在GSP文件中创建网格的代码:-

<table class="easyui-datagrid"
         data-options="fit:true,idField:'id',pageNmber:1,pageList:[25,50,75,100]"              pagination="true" id="importGrid">
    <thead>
      <tr>
       <th data-options="field:'firstName',sortable:true,width:15,nowrap:true" >First Name</th>
        <th data-options="field:'lastName',sortable:true,width:25,nowrap:true" editor="{type:'validatebox',options:{required:true}}" >Last Name</th>
        <th data-options="field: 'firstNameLastName',sortable:true,width:130,nowrap:true" >First Name Last Name</th>
        <th data-options="field:'displayName',sortable:true,rowspan:2,width:80,nowrap:true">Display Name</th>
        <th data-options="field:'relocation',sortable:true,width:130,nowrap:true">Relocation</th>
        <th data-options="field:'proficiency',sortable:true,width:130,nowrap:true" editor="{
                type:'combobox',
                options:{
                    valueField:'rightid',
                    textField:'rightname',
                    data:aRights,
                    required:true
                }
            }">Proficiency</th>
        <th data-options="field:'subProficiency',sortable:true,width:130,nowrap:true" editor='proficiencyEditor'>Sub Proficiency</th>
        <th data-options="field:'uploadResume',sortable:true,width:130,nowrap:true,">Relocation</th>
      </tr>
    </thead>
  </table>

我是Jquery easyui编辑器的新手。请告诉我哪里错了,并帮助我解决问题。

我试图重现您的错误

如果您阅读了文档,编辑的真正问题是您必须使用edatagrid声明

 $('#ID').edatagrid({... options ...});

谢谢。在做了你上面提到的改变后,它对我有用。
  $('#importGrid').datagrid({
    url:'/'+productName+'/TestList/excelImport',
             queryParams:{
        list: hiddenMapForFields,
        file:fileName            
    },
    pageNumber: 1,
   });
 $('#ID').edatagrid({... options ...});