2011-07-07 46 views
0

我在extjs中有一個組合,它根據用戶輸入的內容查找用戶名。服務器後端與$ _GET ['username']格式相匹配。extjs組合查詢參數問題

我的組合queryParam被稱爲用戶名。當我開始輸入時,會發送username = {whatIType} key =>值,然後匹配的結果集會從服務器返回,但如果我單擊組合分頁的下一頁,則跳過該queryParam併發送沒有任何參數的請求所以我的結果都是由服務器發送的,因爲沒有匹配。

這裏是我的組合代碼:

{ 
    xtype: 'combo', 
    triggerAction: 'all', 
    displayField: 'username', 
    name: 'user_id', 
    valueField: 'id', 
    store: usersStore, 
    typeAhead: true, 
    minChars: 2, 
    forceSelection: true, 
    enableKeyEvents: true, 
    pageSize: 10, 
    allowBlank: false, 
    anchor: '100%', 
    queryParam: 'username' 
} 

當我開始通過GET輸入第一個請求:

http://localhost/admin/users/?_dc=1310050289796&username=ma&start=0&limit=50&page=1 

如果我點擊下頁:

http://localhost/admin/users/?_dc=1310050740222&page=4&start=150&limit=50 

知道爲什麼這重啓?

回答