2014-07-09 26 views
1

我有这样定义一个网格:Grails EasyGrid插件:如何设置初始过滤器?

控制器:

def invoicesJQGridGrid = { 
    dataSourceType 'gorm' 
    domainClass Invoice 
    gridImpl 'jqgrid' 
    columns { 
     id { 
      type 'id' 
     } 
    customerId 
    date 
    amount 
    address 
    paymentInfo 
    paymentDate 
    } 
} 

GSP:

<grid:grid id='invoicesGrid' name='invoicesJQGrid'> 
</grid:grid> 

我需要设置CustomerID列最初的过滤器只显示特定客户 的发票以及此过滤器必须应用于每个查询,例如其他过滤或排序由用户应用。

我该怎么做?

回答

相关问题