Are there plans to put the binding.js into the 1.0 version? Or am I overlooking a new way of binding the record to a form, and updateing the grid when the form is updated?

|
#2
|
|
Binding grid data to a form:
Listen to the 'rowselect' event of your selection model: sm.on('rowselect', this.bindData, this, true); My bindData function looks like so: bindData : function(sm, rowIdx){ /* retrieve the current row from the data store */ var currRow = ds.getAt(rowIdx); /* update form elements */ Ext.fly('book-title-form').dom.value = currRow.get('TITLE'); Ext.fly('book-isbn-form').dom.value = currRow.get('ISBN'); Ext.fly('book-keywords-form').dom.value = currRow.get('KEYWORDS'); Ext.fly('book-description-form').dom.value = currRow.get('DESCRIPTION'); } As far as the data marshalling is concerned and sending updates to a server-side component this is something that Jack is currently working on and something that I know I am looking forward to a lot. ![]() |
本文介绍了一种将表格数据绑定到表单的方法,并监听选择模型的'rowselect'事件来实现数据绑定。此外,还讨论了数据绑定及将更新发送到服务器组件的相关工作。

被折叠的 条评论
为什么被折叠?



