2014-07-09 22 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列最初的過濾器只顯示特定客戶 的發票以及此過濾器必須應用於每個查詢,例如其他過濾或排序由用戶應用。

我該怎麼做?

回答

相關問題