2013年6月6日
摘要: gird 使用grouping,鼠标移动到第一行firefox的提示是TypeError:me.getRowStyleTableEl(...)isnullme.getRowStyleTableEl(item).addCls(me.tableOverFirstCls);----------------------------------------------------------------------------chrome的错误提示Cannotcallmethod'addCls'ofnull 如果第一次渲染,就把归组显示出来,然后取消归组,鼠标在移动到第一行,就不会出错 阅读全文
posted @ 2013-06-06 22:24 xsSystem 阅读(381) 评论(1) 推荐(0) 编辑
  2013年6月3日
摘要: 1 Ext.Loader.setConfig({ 2 enabled: true, 3 paths : {//'类名前缀':'对应路径' 4 'App.ux' : 'lib' 5 } 6 }); 7 //或者用setPath设置匹配路径 8 //Ext.Loader.setPath('App.ux', 'lib');//'类名前缀','所在路径' 9 Ext.require(['App.ux.MusicWin']);//引入App.ux(也就是lib) 阅读全文
posted @ 2013-06-03 02:16 xsSystem 阅读(1575) 评论(0) 推荐(0) 编辑
  2013年5月31日
摘要: 写这篇文章是因为记性不好,上次出现的问题解决后,这次相同的问题忘记了怎么弄,多花了些时间。记录一下免得以后又忘记了。 故障表现:ghost 还原系统后出现 ntldr is missing : 问题起因:原来装的是XP系统,后来买了个固态硬盘在里面装了个win7系统,就是双系统。把固态硬盘上的win 阅读全文
posted @ 2013-05-31 13:16 xsSystem 阅读(7288) 评论(0) 推荐(0) 编辑
  2013年5月29日
摘要: 以下是实验得到结论:1.编辑一行记录服务器发生错误,处理结果是:failure返回数据根下success为false {success:false,.......}:处理结果是failure/相反是success,这还不一定由5条结论否定了当处理结果为 success,会无条件执行commit();commit(true)还是commit(false)这个没测试返回数据应按照 proxy.reader 的设置格式返回,当满足格式要求,数据才会回填至当前编辑行,提交的是一条记录,返回可以是{record},[{record}]都可以当有回填数据并且格式正确但不能读取如回填record为{null 阅读全文
posted @ 2013-05-29 22:58 xsSystem 阅读(1446) 评论(0) 推荐(0) 编辑
  2013年5月28日
摘要: An object containing handler configuration.Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.This object may contain any of the following properties:scope : ObjectThe scope (this reference) in which the handler function is executed. If omit 阅读全文
posted @ 2013-05-28 13:23 xsSystem 阅读(678) 评论(0) 推荐(0) 编辑
  2013年5月27日
摘要: a、使用addListeners: addListener( String eventName, Function fn, Object scope, Object options ) panel.addListeners('click',function(){alert('点击事件')},this 阅读全文
posted @ 2013-05-27 21:16 xsSystem 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 数据格式{ success: true, data: { bookId: 10, bookName: "Ext JS 4 First Look", bookAuthor: "Loiane Groner" }} 参考文献:Yii Framework 整合Extjs Direct实现RPC的方法:http://lonestone.iteye.com/blog/846009http://hi.baidu.com/lhmmit/item/b686f11438ecf2f6746a8444ExtJs表单及其元素了解ExtJs4.0中基本表单Ext.form.Basi 阅读全文
posted @ 2013-05-27 15:25 xsSystem 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 官方docs有个例子,给出的是行提示var view = grid.getView();var tip = Ext.create('Ext.tip.ToolTip', { // The overall target element. target: view.el, // Each grid row causes its own separate show and hide. delegate: view.itemSelector,//选择器这里选择'tr.x-grid-row';被选择器选中的元素都会添加tip // Moving within the row 阅读全文
posted @ 2013-05-27 12:40 xsSystem 阅读(660) 评论(0) 推荐(0) 编辑
  2013年5月26日
摘要: Ext.data.proxy.Rest 继承至 Ext.data.proxy.Ajax最大区别是按 Rest 风格构建请求//Ext.data.proxy.Ajax 定义为actionMethods: { create : 'POST', read : 'GET', update : 'POST', destroy: 'POST' }//Ext.data.proxy.Rest 定义为actionMethods: { create : 'POST', read : 'GET', update : &# 阅读全文
posted @ 2013-05-26 20:16 xsSystem 阅读(777) 评论(0) 推荐(0) 编辑
  2013年5月24日
摘要: Ext.Ajax.request({ url : 'S/xs_markets/xs_markets_fy.data.asp?act=submit', async : true,//默认为false params : { edtRecData : Ext.JSON.encode(edtRecData) }, ... 阅读全文
posted @ 2013-05-24 15:38 xsSystem 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 向服务器更新一个单元格,网上大多数教程是以下写法,构建参数然后AJAX提交给服务器处理grid单元格编辑,获取单元格对应 列名:eOpts.column.text列数:this.up('grid').view.headerCt.getColumnCount()EXTJS4 gridpanel中动态的显示/隐藏某个列http://www.cnblogs.com/zdkjob/archive/2013/04/28/3048968.html在extjs3中,大家知道用myGrid.getColumnModel().setHidden(i,true);但到了4.0后,已经没有getCo 阅读全文
posted @ 2013-05-24 15:16 xsSystem 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.sina.com.cn/s/blog_7778950d0100xgel.html 在发布的ExtJS4版本中,在data包中新增加了一个类Model(模型类)。这个类有点类似于ExtJS3.x中的record,但是新添加的Model的功能要比record类的功能强大的多, 阅读全文
posted @ 2013-05-24 03:04 xsSystem 阅读(329) 评论(0) 推荐(0) 编辑
  2013年5月23日
摘要: 取值formPanel.getForm().getValues()//所有值{name:value,name2,value2}formPanel.getForm().getValues().name//取一个指定值 阅读全文
posted @ 2013-05-23 23:55 xsSystem 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 一:统计功能 1.获得总行数起始值为1:store.getCount(); 2.某列数字求和:store.sum('Fhtje');//参数字段名 3.遍历 store.each(function(record) { alert(record.get('name'));}); 二:载入数据 load 阅读全文
posted @ 2013-05-23 22:24 xsSystem 阅读(1686) 评论(0) 推荐(0) 编辑