1. Version v9.0p_2014-02-15/LGPL Development Only
2. FireFox any version and Chrome
The sample ''Filter Related Records" can work normally for filtering.
Note that we only pay close attention to the left component. In this I want to know how it filters, that is to say, is it filter datas from client or fetch datas form server when inputting chars in the listgrid editors?
I write some codes as like the samle ''Filter Related Records" . The codes are
It has one bug. When it shows the listgrid firstly, the filtering is normal. But when it shows the listgrid again, the filtering is not normal when inputting one char but normal multiple chars.
The only different point is that my code is fecthing data from server by 'pickListCriteria' and 'optionDataSource', and the sample code is not.
Why is it so?
Thank you.
2. FireFox any version and Chrome
The sample ''Filter Related Records" can work normally for filtering.
Note that we only pay close attention to the left component. In this I want to know how it filters, that is to say, is it filter datas from client or fetch datas form server when inputting chars in the listgrid editors?
I write some codes as like the samle ''Filter Related Records" . The codes are
Code:
var infBoxLabel = ({
name: "infBoxLabel",
titleAlign : "left",
colSpan : 2,
width : "100%",
title:Uni_Util.getTitleHtml(sdn_uni_interface_name),
type:"select",
multiple:true,
valueField:"infName",
displayField:"infName",
pickListWidth:480,
autoFetchData:true,
defaultToFirstOption:true,
pickListProperties: {autoFetchData:true,
showFilterEditor:true,
filterOnKeypress:true,
filterButtonProperties:{visibility:"hidden"},
autoFetchTextMatchStyle:"substring",
},
pickListFields:[{name:"infName",
title:sdn_uni_phy_name,
type:"text",
required:true,
primaryKey:true,
showDefaultContextMenu:false},
{name:"adminStatus",
title:sdn_uni_phy_admin_status,
valueMap:[sdn_uni_phy_admin_status_enable, sdn_uni_phy_admin_status_disable],
type:"select",
required:true,
showDefaultContextMenu:false},
{name:"infDesc",
title:sdn_uni_phy_description,
type:"text",
required:true,
showDefaultContextMenu:false}],
pickListCriteria:{start:0, length:10000, condStr:JSON.stringify({vrID: this.vrID, neIDs: this.neID})},
optionDataSource:isc.RestDataSource.create({
dataFormat : "json",
fetchDataURL : "/web/res/web-sdn-service/phyinf/fetch",
fields: [{name:"infName"},{name:"adminStatus"},{name:"infDesc"}],
operationBindings : [{operationType:"fetch", dataProtocol:"postMessage"}],
}),
endRow: false,
});The only different point is that my code is fecthing data from server by 'pickListCriteria' and 'optionDataSource', and the sample code is not.
Why is it so?
Thank you.