ExtJs
Asher
这个作者很懒,什么都没留下…
展开
-
Extjs API无法打开
把文档放到服务器 的 webapps 下: 启动服务器,输入 http://localhost:8080/../index.html或ExtJS4.1开发包中DOC文件包中带有ExtJS的API,但是直接打开index.html是打不开的,用firebug调试一下,发现是报错的,因为index.html 引用的是ext.js 文件,这个文件里面是有错误的,所以把它改成e原创 2012-07-08 14:42:43 · 1187 阅读 · 0 评论 -
Store获取json字符串
function storeToJson(jsondata) { var listRecord; if (jsondata instanceof Ext.data.Store) { listRecord = new Array(); jsondata.each(function(record) { listRecord.push(record.data);原创 2012-08-28 08:52:12 · 974 阅读 · 0 评论 -
Ext实现鼠标悬浮提示
function addTab(tabName, obj) { tabs.add({ title : ""+tabName+"", iconCls : 'tabs', closable : true, items : [obj] }).show(); }只需要在要提示的内容中加上 ""+tabName+"",这样借助于ext的qti原创 2012-08-23 14:53:28 · 3585 阅读 · 0 评论 -
PagingToolbar 当前页
Ext.PagingToolbar 获得当前页: grid.getBottomToolbar().getPageData().activePage获得当前start参数: var pageTool = new Ext.PagingToolbar({ pageSize : 5, store : store, displayInfo :原创 2012-07-31 12:23:25 · 959 阅读 · 0 评论 -
Extjs之布局详解
Extjs布局就是以一定的排版显示显示元素,不同的布局有不同的效果,并可以互相嵌套使用。layout : String/Object*Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specified th原创 2012-07-28 23:35:14 · 1759 阅读 · 0 评论 -
Store提交和回滚
Store的提交和回滚类似于数据库中的commit、rollback,当客户端修改了一条Record的属性之后,这条Record记录和后台数据库中的实际数据就不一致了,此时的Record对象就成了"脏数据"commitChanges() : voidCommit all Records with outstanding changes. To handle updates for原创 2012-07-24 12:46:10 · 973 阅读 · 0 评论 -
Extjs LoadMask
LoadMask( Mixed el, Object config )Create a new LoadMaskParameters:el : MixedThe element or DOM node, or its idconfig : ObjectThe config objectReturns:void原创 2012-07-27 20:54:21 · 871 阅读 · 0 评论 -
Extjs Date
Format Description Example returned values------ ----------------------------------------------------------------------- ------------原创 2012-07-27 10:18:26 · 657 阅读 · 0 评论 -
Ext.form.VTypes
1、为空验证的两个配置 allowBlank:false //false则不能为空,默认为true blankText:string//当为空时的错误提示信息items : [{ fieldLabel : 'ENAME', name : 'emp.ename', allowBlank : false, blankText:"雇员姓名不能为空!"原创 2012-07-23 22:34:29 · 1731 阅读 · 0 评论 -
Uncaught TypeError: Object #<Object> has no method 'addEvents'
今天犯了个低级错误,构造对象时居然忘记new了,瑾记啊Uncaught TypeError: Object # has no method 'addEvents'Ext.data.Store.Ext.extend.constructorext-all.js:7(anonymous function)test.js:16h.Event.nameex原创 2012-07-21 20:39:58 · 3780 阅读 · 0 评论 -
Extjs所有组件
EXTJS的组件体系中有进40种组件,而这些组件又可以大致分成三大类,即基本组件、工具栏组件、表单及元素组件。 基本组件是构成Web UI的主体组件,因为这些组件在其他开发体系中也都有部分存在。这些组件丰富了传统Web UI 的表现,是EXTJS改善Web UI 的重要体现。 EXIJS的基本组件:xtype Class原创 2012-06-30 21:22:58 · 3809 阅读 · 0 评论 -
Extjs 的GridPanel剔除隐藏列在menuDisabled 显示
在Extjs中的GridPanel会有这样的情况,隐藏列会显示在menuDisabled中 如下图:但是这个一般没有什么用处,只是用于后台取值的作用。so 加一个属性:hideable:false就可以搞定了[javascript] view plaincopyprint?{转载 2013-04-02 17:41:05 · 1346 阅读 · 0 评论