/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
var form;
var win;
Ext.onReady(function(){
// sample static data for the store
var data = [
[110,'A112',002,'xiaoli','男','9/1 12:00am','1231212121212','汉族','团员','杭电','本科','学士','计算机','007','公证员','1021','135881212','11111@qq.com','环城西路33号','英语','六级','二级','9/1 12:00am','在职','篮球','跑步','在职','W1111','无职','平民','是','有','CY2323','是','ZX2312','9/1 12:00am','教学','无','是','9/1 12:00am','是','9/1 12:00am','理工','本科','9/1 12:00am','哲学','jklx']
];
// create the data store
var store = new Ext.data.ArrayStore({
fields: [
{name: 'sqm'},
{name: 'rybm', type: 'fit'}
],
data: data
});
// get a form
function getUpdateForm(){
form = new Ext.form.FormPanel({
width: 500,
height: 300,
// title: 'User Details',
defaultType: 'textfield',
closeAction:'hide',
autoDestroy :false,
padding: 10,
autoScroll:true,
labelWidth: 90,
tabr:[{
text:'确定'
},{
text:'取消'
}],
items:[{
fieldLabel: '授权码',
name : 'sqm',
id:'sqm'
// allowBlank : false,
// anchor:'100%' // anchor width by percentage
},{
fieldLabel: '机构编码',
name : 'rybm',
allowBlank : false,
id:'rybm'
// anchor:'100%' // anchor width by percentage
}]
});
return form;
}
// create the Grid
// To use locking functionality we must explicitly specify the LockingColumnModel and the LockingGridView
var grid = new Ext.grid.GridPanel({
store: store,
title:'人员信息表',
tbar:[{
text:'新增',
id:'addNewOne',
iconCls: 'add16',
onClick:function(){
//alert('gg');
if(!form){
form=getUpdateForm();
}
if(!win){
var win = new Ext.Window({
title:'新增',
closeAction:'hide',
width:550,
详细解决方案
TypeError: this.dom is undefined 烦恼。
热度:647 发布时间:2013-04-20 19:43:01.0
相关解决方案
- Expression dqgrade is undefined on line 20, column 30-freemarker报这样的错如何解决
- undefined for the type解决办法
- 初学者发问:The constructor Printwriter(String) is undefined
- flash 读取 servlet 生成的xml 展示 undefined
- mvc过去台发送ajax请求得到的数据显示未定义(undefined),哪位帮忙看看
- 在线请问调用Jquery异常:TypeError: a is undefined 的异常原因有哪些
- TypeError: 'Ext.getCmp(.)' 为空或不是对象,麻烦看看,该如何处理
- ASP.NET JavaScript “undefined”,该怎么解决
- 'undefined'为空或不是对象,该怎么解决
- Undefined symbol: '_CxxFrameHandler'?该如何解决
- undefined reference to异常怎么解决
- MTK Undefined symbol Image$$ZI$$Limit (referred from sys_stackheap.o) 怎么解决
- MTK平台链接异常:Undefined symbol Image$$ZI$$Limit
- CCS编译X264 ERROR string.h error:identifier "using" is undefined,该如何处理
- [急切]undefined RAS Dial Error 127 什么意思啊
- Processor ARM79_0 raised an exception.Cause: Undefined instruction,该如何处理
- Ada程序编译不过 提醒 Other is undefined
- : error A2006: undefined symbol : data解决办法
- TC 提示 Undefined Symbol '_brklvl' in module BRK 等异常,不知如何避免
- apache配置httpd.conf异常 undefined symbol: ap_proxy_ftp_canon
- solaris undefined symbol解决方案
- undefined reference to `av_register_all'这样的异常如何解决呀
- undefined reference to `av_register_all'这样的异常如何解决呀
- The method talk01() is undefined for the type Object
- [Linker error] undefined reference to `prinf'的问题!
- Undefined symbol 'xxxxxxx'
- php连接mysql出错:Fatal error: Call to undefined function mysql_connect(),该如何处理
- thinkphp 有关问题 Call to undefined function
- 求大侠救命,f is undefined.调试半天快死了
- jCover运行时敲回车疏失“undefined”