databounddependentselects.js

来自「javascript 很酷的类库」· JavaScript 代码 · 共 29 行

JS
29
字号
isc.ListGrid.create({    width: 500,    height:200,    canEdit:true,    ID:"orderList",        fields: [        {name:"quantity", title:"Qty", type:"integer", width:30},        {name:"categoryName", title:"Category", editorType:"select",          optionDataSource:"supplyCategory", autoFetchDisplayMap: false        },        {name: "itemName", title:"Item", editorType: "select",          optionDataSource:"supplyItem", autoFetchDisplayMap: false,         editorProperties:{             getPickListFilterCriteria : function () {                var category = this.grid.getEditedCell(this.rowNum, "categoryName");                return {category:category};             }         }        }            ]});isc.IButton.create({    top:225,    title:"Order New Item",    click:"orderList.startEditingNew({quantity:1})"})

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?