0
Internet Explorer中破碎不能處理網址長於2083個字符(參照What is the maximum length of a URL in different browsers?)道場數據網格過濾通過「ANY COLUMN」由IE的最大的URL長度限制
使用道場EnhancedGrid與Filter插件,它是可能的用戶將過濾器應用於「任意列」。在啓用了服務器端過濾的情況下,生成的URL與用戶對每個列分別應用相同的過濾器時相同,從而生成對很長URL的GET請求。
有沒有辦法解決這個問題?
var myStore = new JsonRest({target:"duck/", sortParam: "sortBy"});
grid = new EnhancedGrid({
store: dataStore = new ObjectStore({objectStore: myStore}),
id: "colId",
query: { colId: "*"},
structure: [
//whole bunch of columns
],
plugins:{
filter:{
isServerSide: true,
itemsName: "ducks",
setupFilterQuery: function(commands, request){
request.query.filter = JSON.stringify(commands.filter)
}
}
}