`
atian25
  • 浏览: 462243 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
郁闷...本来都写完的了...结果插入一个表格...编辑器就出问题了...内容不见了一半...格式也全乱了...得重来...   翻译的不好,请多见谅。其中有些地方觉得太拗口了,就直接给出原文了,如果你有更好的翻译,请跟帖,谢谢。   原文地址: http://extjs.com/forum/showthread.php?t=70352   Changes, Additions  (roughly organized alphabetically)   1.Ext  新增:  iterate 方法 - 遍历一个数组或对象,对每个元素都执行指定的函数 ...
如下:示例代码是对某个特定的对象,如果需要全局,自己Extend吧.   1.滚动Grid到指定的Record   代码: viewConfig:{ forceFit: true, deferEmptyText: true, emptyText: "无相关数据", //滚动Grid到指定的Record scrollToRecord:function(record){ var index = this.grid.getStore().in ...
回答问题:http://www.iteye.com/problems/20463   一般情况下最好是能在后台组装好格式再传递给前台展示. 但是如果基于某些设计上的原因或者是后台不可控的情况下, 可以在前台转换, 方法有很多种,一种是在前台遍历数据,构造出符合tree的数据. 还有一种是直接遍历添加到Tree,如下:   Ext.onReady(function(){ Ext.BLANK_IMAGE_URL = '/images/s.gif'; Ext.QuickTips.init(); testTreeCustomData(); }); ...
很简单,自己算... 代码如下:   new Ext.grid.RowNumberer({ renderer : function(v, p, record, rowIndex){ if(this.rowspan){ p.cellAttr = 'rowspan="'+this.rowspan+'"'; } if(Ext.isEmpty(this.lastGroupId)||this.lastGroupId!=record._groupId){ this._index=1; }el ...
回答问题:http://www.iteye.com/problems/20038   需求是能动态设置TimeField的最大值和最小值:   首先观察源码,没有发现相关的接口.   // private initComponent : function(){ Ext.form.TimeField.superclass.initComponent.call(this); if(typeof this.minValue == "string"){ this.minValue = ...
看到问答里面的:http://www.iteye.com/problems/19761 就顺便总结点自己的体会吧。     1.表头提示   在2.2里面是设置ColumnModel.tooltip ,3.0则是Column. tooltip 如下: var grid = new Ext.grid.GridPanel({ columns:[ {header:'名称',dataIndex:'name',tooltip:'对象名称'}, {header:'开始时间 - 结束时间 <br/>成功/失败/成功率', data ...
几年前买N73的时候试拍的. 速度大概是1分13秒。算中等吧. 许老大那23秒就不奢望了... http://www.tudou.com/v/p0D2O3QTPuU
首先是cell内容自动换行,在官方FAQ那提到是加一句CSS: .x-grid3-cell-inner { /*内容长的时候换行*/ white-space:normal !important; }   其次,Grid的某几列都指定了宽度,就剩下一列(如图中的"内容")是让它自适应的.   var cm = new Ext.grid.ColumnModel([ sm, { header:'名称', dataIndex:'alarmName', ...
前言,学习ExtJS Grid的新手,官方的这篇FAQ是必读的. 顺手翻译了一小点,大概了解就ok了,挺生硬的,呵呵...   翻译自:http://extjs.com/learn/Ext_FAQ_Grid#Behavior   5.行为   5.1 单元格的链接   >方法1: 自定义渲染方法 var yourColumn = { header: "Company", dataIndex: 'company', renderer: function(value, metaData ...
首先,API上很明确讲了:   Ext.grid.GridPanel 写道 Notes: 1.Although this class inherits many configuration options from base classes, some of them (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will have no effect.---autowidth和autoheight是没用的 ...
有一些需求 如: 1.某个字段的内容的可选值是: 男,女,不男不女,雌雄同体, 要求排序的顺序是 男>女>不男不女>雌雄同体 2.中文排序   只需要对相应的record的field设置里面添加sortType , 代码如下: // current sort after sort we want // +-+------+ +-+------+ // |1|First | |1|First | // |2|Last | |3|Second| // |3|Second| |2 ...
view: new Ext.ux.grid.BufferView({ // custom row height rowHeight: 34, // render rows as they come into viewable area. scrollDelay: false, forceFit: true, deferEmptyText: true, emptyText: "无相关数据" })   Extjs 3.0 新增了Ext.ux.Buffe ...
实际上就是YUI CHART, 具体的文档可以看: http://developer.yahoo.com/yui/charts/ 而YUI CHART就是把Yahoo的Astra-Chart给封装了下而已:http://developer.yahoo.com/flash/astra-flash/   先上个图:   代码如下: 1.定义store   //定义store var chartStore = new Ext.data.JsonStore({ root:'data', fields:[ { ...
var tabs = new Ext.TabPanel({ renderTo: 'tabs1', width:450, activeTab: 0, frame:true, defaults:{autoHeight: true}, items:[ {contentEl:'script', title: 'Short Text'}, {contentEl:'markup', title: 'Long Text'} ], ...
DWR 3.0版本:   1.传递额外的参数   Rules: arg - If specified will be used as a default argument to pass to the callback and will apply to both callback handlers and exception handlers. 如果设置该参数则会作为一个默认的参数传递给回调函数和错误处理函数 callbackArg - If specified will apply to callback handlers and will override a ...
Global site tag (gtag.js) - Google Analytics