gridPanel 新增时,自动添加默认值

var grid = this.grid, store = grid.getStore(),
		Record = store.reader.recordType;
		var proTitleSn=Ext.getCmp('previous_title_sn').getValue();
		var r = new Record({pro_title_sn:proTitleSn,education_label:'学历',work_experience_label:'职称年限',work_time_label:'工作年限'});
		store.insert(0, r);
		grid.getView().refresh();
		grid.getSelectionModel().selectRow(0);

你可能感兴趣的:(gridPanel)