哪位大神懂ext的。。。本人新手,教教我好不?函数进去了,为啥不会添加一行呢?

listeners : {
scope : this,
'render' : function() {
Ext.Msg.alert('错误', '进来啦!');
new Ext.data.Record({
cust_account : null,
cust_tcisname : null,
cust_phone :'123',
cust_type :null,
cust_address :null,
payment_attr :null,
biling_tactics : null,
biling_regular :null,
newRecord : true
})
}

你只是创建了record,又没有添加到store中,你要哪个grid显示这个记录就更新哪个grid的store

http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.data.Store-method-add


add( model ) : Ext.data.Model[]
Adds Model instance to the Store. This method accepts either:

An array of Model instances or Model configuration objects.
Any number of Model instance or Model configuration object arguments.
The new Model instances will be added at the end of the existing collection.

Sample usage:

myStore.add({some: 'data'}, {some: 'other data'});
Note that if this Store is sorted, the new Model instances will be inserted at the correct point in the Store to maintain the sort order.

Available since: 1.1.0

Parameters
model : Ext.data.Model[]/Ext.data.Model...
An array of Model instances or Model configuration objects, or variable number of Model instance or config arguments.
Returns
Ext.data.Model[]
The model instances that were added
Fires
add
beforesort
beforesync
datachanged