$('#selectChannelForSignup_getBill').combobox({ url:'../channel/listAdvanceChannelPage', queryParams:{offset:0,limit:9999,channelName:"",sourceGroupId:0,usageState:0}, valueField : 'channelId', textField : 'channelName', editable:false, panelHeight:'auto', panelMaxHeight:200, loadFilter: function(data){ console.info(data); //过滤数据 var value={ total:9999, rows:[] }; var x=0; for (var i = 0; i < data.length; i++) { if(data[i].creditAvailable > 0){ value.rows[x++]=data[i]; } } console.info(value.rows); return value.rows; } })
使用loadFilter函数处理来自Web Services的JSON数据。