要实现的效果用图表示出来,选择左边的grid的任意行,该行的剩余字段绑定到右边的Form...修改了Form中的字段.点击更新按钮自动更新store中选择汗的字段.

Ext 4  Grid 和 Form 相互绑定并更新 Store 更新行

反正现在就是有这么样一个需求.

用到的model

Ext.define('Column', {
    extend: 'Ext.data.Model',
    fields: ['code', 'name', 'name2', 'name3', 'type', 'remark',
        {name: 'len', type: 'int'},
        {name: 'digits', type: 'int'},
        {name:'unique',type:'bool',defaultValue:false},
        {name:'visible',type:'bool',defaultValue:false},
        {name:'readonly',type:'bool',defaultValue:false},
        {name:'default',type:'string'},
        'check','filter',{name:'isNull',type:'bool',defaultValue:false}
    ]
});
View Code

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-11-02
  • 2022-01-03
  • 2022-12-23
  • 2021-08-18
  • 2021-10-22
猜你喜欢
  • 2022-01-29
  • 2021-11-26
  • 2022-12-23
  • 2021-08-26
  • 2021-12-15
  • 2022-12-23
  • 2021-08-06
相关资源
相似解决方案