ITeye博客

Extjs

共 16 篇文章

【转】ExtJS日历控件在chrome显示异常(布满整个屏幕)的解决办法

解决办法: 一、在date-picker.css中加入控件的宽度185 .x-date-picker { border: 1px solid; border-top:0 none; position:relative; width: 185px; } 当然,date-picker.css需要被引入 二、 近在用extjs的DateField控件的时候,总是出现时间空间显示的时候宽度占满了整个屏幕,后来发现这个extjs在chrome下面的一个bug 解决:重写DateMenu,添加style.width='178px' /********** 解决日历控件显示异常 **********/ E…

2014-12-01 15:33 · Extjs

支持手工输入的combo问题处理

1、说明 可手工输入内容的combo,当手工输入值后,提交表单时无法获取文本中的内容 2、解决 width: 200, maxLength:20, xtype: 'combo', fieldLabel: '运输车牌号码', hiddenName: 'carNumber', id:'carNumber_id', width: 200, valueField: 'name', displayField: 'name', //editable: false, triggerAction: 'all', //mode: 'local', store: new Ext.data.JsonStore({…

2014-11-15 16:01 · Extjs

Extjs grid 合计

1、直接在客户端统计,动态的修改Grid 2、代码如下 buttons: [{ text: '查询', handler: function() { var a = Ext.getCmp('wholesale-query-form').form.getValues(); var s = Ext.StoreMgr.lookup('wholesaleReportStore'); s.load({ params:a, callback:function(r,options,success){ if(!success){ alert("数据加载失败!"); } else{ //合计行 var sumc…

2012-05-31 14:28 · Extjs · 备忘

extjs2.x中带有拼音检索功能combo

1、extjs2.2版本 2、js代码示例 //Combobox, IE and hideTrigger:true bug Ext.form.TriggerField.override({ afterRender: function() { Ext.form.TriggerField.superclass.afterRender.call(this); } }); { xtype:'combo', fieldLabel: '客户(拼音搜索)', labelSeparator: ':' + '&nbsp;&nbsp;<img src="'+ Ext.NEEDED_IMAGE_URL + '"/…

2012-04-22 16:17 · Extjs · web前端

Extjs2.x中使用htmleditor遇到的问题记录

1、IE6下htmleditor文本编辑器无法显示 解决:删除 anchor:'100%'; xtype: 'htmleditor', //labelAlign: 'top', autoWidth:false, labelSeparator: ':' + '&nbsp;&nbsp;<img src="'+ Ext.NEEDED_IMAGE_URL + '"/>', name: 'workInfo', fieldLabel: '值班情况', allowBlank : false, blankText :'请填写值班情况', height: 200, width : 500//, //ancho…

2011-10-16 10:37 · Extjs · web前端

Extjs ComboBox根据条件的分页查询

1、说明 extjs combo经常会根据其他文本框中值去load 数据。 2、代码如下 { id:'lovcombo_cars', hiddenName:'carNumber', xtype:'combo', width:260, fieldLabel: '车牌号', maxHeight:200, readOnly:true, editable:false, pageSize:10, mode:'remote', store:new Ext.data.JsonStore({ storeId:'incomingCarStore', url: 'data/orgCar.do', root: '…

2011-09-07 19:07 · Extjs · web前端

Extjs2.x bug解决-Combobox,hideTrigger:true 在IE下无法显示

关于Exjts2.2.1中comboBox控件设置了hideTrigger:true,在IE下无法显示BUG解决如下 //Combobox, IE and hideTrigger:true bug Ext.form.TriggerField.override({ afterRender: function() { Ext.form.TriggerField.superclass.afterRender.call(this); } }); 总结:此解决方案从extjs官网上找到,地址如下 http://www.sencha.com/forum/forumdisplay.php?20-Ext-2…

2011-09-07 18:09 · Extjs · web前端

Extjs数据提交方式--单独Ajax提交

1、一般分为“form的submit提交”、“单独Ajax提交” formname.form.submit({ url : '', method : 'POST', waitMsg:'正在保存数据,请等待...', success : function(form, action) { }, failure : function(form, action) { } }); Ext.Ajax.request({ url : '', method : 'POST', success : function(result, request) { }, failure : function(form, …

2011-08-07 11:31 · Extjs · web前端

extjs项目断网,图片显示不全

1、造成该问题的原因 在导入的JavaScript文件中ext-base.js有一个BLANK_IMAGE_URL ,他默认为 http://extjs.com/s.gif ,所以,断了网时访问就会这样。 2、解决方法如下: <script src="scripts/ext-base.js" type="text/javascript"></script> <script src="scripts/ext-all.js" type="text/javascript"></script> <script src="scripts/ext-lang-zh_CN.js" type="text/ja…

2011-01-10 23:23 · Extjs · EXT · JavaScript

关于修补Ext2.2 datefield IE8 下显示不全的bug

关于Exjts2.2.1中datefield控件在IE8下显示不全BUG解决如下 1、判断是否当前浏览器是否IE8 Ext.isIE8 = Ext.isIE && navigator.userAgent.indexOf('MSIE 8')!=-1; 2、重写ext-all.js中方法(25897行) Ext.override(Ext.menu.Menu, { autoWidth : function(){ var el = this.el, ul = this.ul; if(!el){ return; } var w = this.width; if(w){ el.setWidth(w); …

2010-09-09 22:44 · Extjs · 浏览器 · EXT

Extjs之--图片上传器

1、效果图: 点击文本框后图标,弹出图片上传窗口 说明: (1)、点击文本框后图标,弹出上传图片窗口,上传成功后将生成的图片名称添加入文本框内。 (2)、图片可预览,并对非图片文件进行阻挡。 2、app-imageUpload.js代码 //上传图片类型 var img_reg = /\.([jJ][pP][gG]){1}$|\.([jJ][pP][eE][gG]){1}$|\.([gG][iI][fF]){1}$|\.([pP][nN][gG]){1}$|\.([bB][mM][pP]){1}$/; var win_uploadImage = new Ext.Window({ layout…

2010-09-03 23:54 · Extjs · EXT · F# · Microsoft

Extjs之--图片浏览器

1、效果图 2、此实例是在 http://yourgame.iteye.com/blog/477600 基础上进行改进并修改。 3、 js代码 var image_window = new Ext.Window({ id: 'image-window', title : '图片浏览', width : 750, height : 500, resizable : false, closeAction :'hide', layout:'border', items:[{ xtype: 'panel', region: 'center', layout:'fit', bodyStyle : 'b…

2010-08-31 22:31 · Extjs · 浏览器 · CSS · EXT · Blog · UP

Extjs之--带分页的lovcombo控件

1、效果图: 2、js部分 { id:'lovcombo_test', hiddenName:'testBatch', xtype:'lovcombo', width:300, //hideOnSelect:false, maxHeight:200, readOnly:true, editable:false, pageSize:10, mode:'remote', store:new Ext.data.JsonStore({ url: 'data/testBatches.do', root: 'testBatches', totalProperty: 'totalCount', remot…

2010-08-26 23:14 · Extjs · CSS · EXT

Extjs grid带分页的查询

1、先按条件查询数据,再点下一页保留住查询条件,解决方案是将查询参数放入到store.baseParam中 store: new Ext.data.JsonStore({ storeId: 'in_grid_store', pageSize: 20, totalProperty: 'totalCount', remoteSort: true, url: 'incoming/list.do', root: 'incomings', listeners :{ beforeload :{ fn : function(thiz,options){ Ext.apply(thiz.baseParams,…

2009-09-09 12:32 · Extjs · EXT

ExtJS树型下拉框应用--地区选择

1、效果如图 2、 引入TreeField控件(转载) Ext.form.TreeField = Ext.extend(Ext.form.TriggerField, { /** * @cfg {Boolean} readOnly * 设置为只读状态 * */ readOnly : true , /** * @cfg {String} displayField * 用于显示数据的字段名 * */ displayField : 'text', /** * @cfg {String} valueField * 用于保存真实数据的字段名 */ valueField : null, /** * @cf…

2009-07-16 15:07 · Extjs · EXT · json

Extjs之--combox分页功能

效果图: js部分 关键参数: mode:'remote'//数据加载模式 minListWidth:230,//下拉列表宽度 pageSize:6,//每页显示的条数 { xtype: 'combo', hiddenName: 'incomingBatch', valueField: 'id', displayField: 'name', editable: false, allowBlank : false, blankText :'请填写进厂批次', msgTarget :'under', triggerAction: 'all', width: 150, mode: 'remote'…

2009-03-15 22:16 · Extjs · EXT · json