`
昔日舞曲
  • 浏览: 58960 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

editFields,editSections,editSectionsField

 
阅读更多

缺省,selectPart属性指定的列被用来定义可以在搜索或者编辑对话框中的区域.如果你想指定一个不同的列的集合来用在搜索或者编辑对话框中,那么可以用editFields/editLabels 和searchFields/searchLabels属性对来做.

...
document.all.dbnetgrid1.editLabels = ["Quantity", "Price"]
document.all.dbnetgrid1.editFields = ["products.quantity", "products.price"]
...
document.all.dbnetgrid1.searchLabels = ["Name","Country"]
document.all.dbnetgrid1.searchFields = ["products.productname", "products.countryoforigin"]
...

定义编辑表单的节:editSections = [['节标题', n, '宽度百分比'], ... ,],其中整数n是用来对节中的字段进行分组的
定义节包含的字段,editSectionsFields = [['节字段1', '节字段2'], ... ,],需注意的是必需包含editFields中的全部字段,若editFields未设置则以selectPart中的可用字段为准,非表中固有字段例如自定义字段'(0)'、重复使用的字段除外

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics