- 浏览: 713222 次
- 性别:
- 来自: 广州
文章分类
最新评论
-
ron.luo:
群主有开放源代码吗?
统一用户权限管理系统(正式版) -
名字应该取长点:
楼主可不可以问你几个问题呀,关于这个插件,貌似单线程,而且不分 ...
Extjs3.3 + swfUpload2.2 实现多文件上传组件 -
mayouth:
不知道楼主能不能解决下浏览器兼容的问题,目前好像火狐和谷歌浏览 ...
Extjs3.3 + swfUpload2.2 实现多文件上传组件 -
一水无间:
...
pushlet + Extjs 聊天室v0.9 (含源码) -
jintt123:
你好!我后台用的是C#,为什么一直上传失败,好像是后台取不到参 ...
多文件上传UploadPanel for extjs4(swfuoload2.5)
在sencha论坛看到的扩展:
例子:
Ext.onReady(function() { new Ext.Viewport({ layout: 'hbox', layoutConfig: { align: 'stretch' }, defaults: { flex: 1 }, items: [{ title: 'ComponentDataView example', items: { xtype: 'compdataview', store: [[1, 'One'], [2, 'Two'], [3, 'Three']], itemSelector: 'tbody tr', tpl: '<table><thead><tr><td>Value</td><td>Text</td></tr></thead><tbody><tpl for="."><tr><td></td><td></td></tr></tpl></tbody></table>', items: [{ xtype: 'numberfield', minValue: 0, maxValue: 100, renderTarget: 'td:nth(1)', applyValue: 'field1' },{ allowBlank: false, renderTarget: 'td:nth(2)', applyValue: 'field2' }] } },{ title: 'ComponentListView example', items: { xtype: 'complistview', store: [[1, 'One'], [2, 'Two'], [3, 'Three']], columns: [{ header: 'Value', width: .5, dataIndex: 'field1', tpl: ' ', component: { xtype: 'button', text : 'test' } },{ header: 'Text', width: .5, dataIndex: 'field2', tpl: ' ', component: { allowBlank: false, applyValue: true } }] } }] }); });
扩展代码:
Ext.ns('Ext.ux'); Ext.ux.ComponentDataView = Ext.extend(Ext.DataView, { defaultType: 'textfield', initComponent : function(){ Ext.ux.ComponentDataView.superclass.initComponent.call(this); this.components = []; }, refresh : function(){ Ext.destroy(this.components); this.components = []; Ext.ux.ComponentDataView.superclass.refresh.call(this); this.renderItems(0, this.store.getCount() - 1); }, onUpdate : function(ds, record){ var index = ds.indexOf(record); if(index > -1){ this.destroyItems(index); } Ext.ux.ComponentDataView.superclass.onUpdate.apply(this, arguments); if(index > -1){ this.renderItems(index, index); } }, onAdd : function(ds, records, index){ var count = this.all.getCount(); Ext.ux.ComponentDataView.superclass.onAdd.apply(this, arguments); if(count !== 0){ this.renderItems(index, index + records.length - 1); } }, onRemove : function(ds, record, index){ this.destroyItems(index); Ext.ux.ComponentDataView.superclass.onRemove.apply(this, arguments); }, onDestroy : function(){ Ext.ux.ComponentDataView.onDestroy.call(this); Ext.destroy(this.components); this.components = []; }, renderItems : function(startIndex, endIndex){ var ns = this.all.elements; var args = [startIndex, 0]; for(var i = startIndex; i <= endIndex; i++){ var r = args[args.length] = []; for(var items = this.items, j = 0, len = items.length, c; j < len; j++){ c = items[j].render ? c = items[j].cloneConfig() : Ext.create(items[j], this.defaultType); r[j] = c; if(c.renderTarget){ c.render(Ext.DomQuery.selectNode(c.renderTarget, ns[i])); }else if(c.applyTarget){ c.applyToMarkup(Ext.DomQuery.selectNode(c.applyTarget, ns[i])); }else{ c.render(ns[i]); } if(Ext.isFunction(c.setValue) && c.applyValue){ c.setValue(this.store.getAt(i).get(c.applyValue)); c.on('blur', function(f){ this.store.getAt(this.index).data[this.dataIndex] = f.getValue(); }, {store: this.store, index: i, dataIndex: c.applyValue}); } } } this.components.splice.apply(this.components, args); }, destroyItems : function(index){ Ext.destroy(this.components[index]); this.components.splice(index, 1); } }); Ext.reg('compdataview', Ext.ux.ComponentDataView); Ext.ux.ComponentListView = Ext.extend(Ext.ListView, { defaultType: 'textfield', initComponent : function(){ Ext.ux.ComponentListView.superclass.initComponent.call(this); this.components = []; }, refresh : function(){ Ext.destroy(this.components); this.components = []; Ext.ux.ComponentListView.superclass.refresh.apply(this, arguments); this.renderItems(0, this.store.getCount() - 1); }, onUpdate : function(ds, record){ var index = ds.indexOf(record); if(index > -1){ this.destroyItems(index); } Ext.ux.ComponentListView.superclass.onUpdate.apply(this, arguments); if(index > -1){ this.renderItems(index, index); } }, onAdd : function(ds, records, index){ var count = this.all.getCount(); Ext.ux.ComponentListView.superclass.onAdd.apply(this, arguments); if(count !== 0){ this.renderItems(index, index + records.length - 1); } }, onRemove : function(ds, record, index){ this.destroyItems(index); Ext.ux.ComponentListView.superclass.onRemove.apply(this, arguments); }, onDestroy : function(){ Ext.ux.ComponentDataView.onDestroy.call(this); Ext.destroy(this.components); this.components = []; }, renderItems : function(startIndex, endIndex){ var ns = this.all.elements; var args = [startIndex, 0]; for(var i = startIndex; i <= endIndex; i++){ var r = args[args.length] = []; for(var columns = this.columns, j = 0, len = columns.length, c; j < len; j++){ var component = columns[j].component; c = component.render ? c = component.cloneConfig() : Ext.create(component, this.defaultType); r[j] = c; var node = ns[i].getElementsByTagName('dt')[j].firstChild; if(c.renderTarget){ c.render(Ext.DomQuery.selectNode(c.renderTarget, node)); }else if(c.applyTarget){ c.applyToMarkup(Ext.DomQuery.selectNode(c.applyTarget, node)); }else{ c.render(node); } if(c.applyValue === true){ c.applyValue = columns[j].dataIndex; } if(Ext.isFunction(c.setValue) && c.applyValue){ c.setValue(this.store.getAt(i).get(c.applyValue)); c.on('blur', function(f){ this.store.getAt(this.index).data[this.dataIndex] = f.getValue(); }, {store: this.store, index: i, dataIndex: c.applyValue}); } } } this.components.splice.apply(this.components, args); }, destroyItems : function(index){ Ext.destroy(this.components[index]); this.components.splice(index, 1); } }); Ext.reg('complistview', Ext.ux.ComponentListView);
发表评论
-
统一用户权限管理系统(正式版)
2015-01-08 21:11 50277该系统已停止更新,已发布另外一个平台,演示地址:htt ... -
多文件上传UploadPanel for extjs4(swfuoload2.5)
2012-11-17 14:21 25274UploadPanel for extjs4 使用的是SWFU ... -
Sencha Touch2 MVC Demo (含源码/数据库)
2012-11-08 16:25 7089源码见附件。由于文件太大,resources\media ... -
后台管理
2012-09-09 18:58 3207java6+spring+hibernate+extjs4.1 ... -
Extjs chekboxtree PagingTreeLoader 多选、分页
2012-04-13 13:58 2053测试使用版本:extjs3.4.0 效果图: ... -
web即时聊天有消息头像跳动
2012-04-05 14:46 2337结合Extjs tree做的. //有消息头像跳 ... -
表情选择扩展
2012-04-05 14:37 1754/** * 表情扩展 * @param {} c ... -
Extjs4 下拉树( v1.0版本有bug,已经上传一个可以用的)
2012-01-06 17:11 8321Extjs4 下拉树,v1.0版本有bug,请使用“TreeP ... -
Extjs4 动态加载(Ext.Loader)
2011-12-29 14:42 30719项目文件路径图 Ext.Loader.setConfi ... -
Extjs多文件上传(非SWFUpload版)
2011-11-08 17:21 8092Extjs多文件上传(非SWFUpload版) 不用flas ... -
Extjs4 MVC详解
2011-09-27 00:59 18408关于一个ext4MVC的例子,代码中有相关注释; 详细见附件 ... -
Extjs4.0 之Ext.Class 属性详解 (alias/mixins /uses/requires/singleton等属性)
2011-09-02 00:22 21445Ext.Class 属性详解 : 1 , a ... -
Extjs4.0 之Ext.Class 属性详解 (alias/mixins /requires/singleton等属性)
2011-09-02 00:12 2Ext.Class 属性详解 : 1 , a ... -
[keel] 权限管理模块(含前后台代码)
2011-06-12 20:47 10091注意:仅供参考,学习之用!支持开源! 关联文章(必看, ... -
[Extjs4.0] keel_jdbc2.0后台管理模块 (包含前后台源码)
2011-05-26 00:02 15152主要测试Ext4.0而做的! keel后台管理模块: ... -
来看看这几种查询布局,您是否还有其他想法?创意无限!
2010-12-25 01:14 3513来看看这几种查询布局,您是否还有其他想法?创意无限! ... -
Ext3.3.1颜色主题(ext3.3.1-theme)
2010-12-23 22:30 7181支持ext3.3.X css文件见附件 ... -
Extjs3.3结合fckeditor2.6.6实现可视化编辑器(java版)
2010-12-11 21:08 4644工程在附件中,后台为java。 fckeditorDe ... -
Extjs3.3 + swfUpload2.2 实现多文件上传组件
2010-12-06 00:11 35204【该上传组件已经停止 ... -
一个联动引发的思考
2010-11-16 23:45 2093之前我认为工作都是重复的做某些东西, 感觉没有激情没有新鲜感 ...
相关推荐
var dataview = new Ext.DataView({ store: store, tpl : tpl, id: 'phones', itemSelector: 'li.phone', overClass : 'phone-hover', singleSelect: true, multiSelect : false, autoScroll : true }); ...
官网直接安装的不支持vite2+vue3的 主要修复: 1.build或者dev项目时不报错,兼容vite2,vue3; 2.加入deep监听watch,直接在父组件中修改图表中的config参数即可完成图表中的数据变更。 yarn npm cnpm pnpm可通用...
官网直接安装的不支持vite2+vue3的 主要修复: 1.build或者dev项目时不报错,兼容vite2,vue3; 2.加入deep监听watch,直接在父组件中修改图表中的config参数即可完成图表中的数据变更。 yarn npm cnpm pnpm可通用...
在一个链接中: import 'package:dataview/dataview.dart' ; // ... RaisedButton ( onPressed : () { Navigator . of (context). push ( MaterialPageRoute ( builder : (context) { return DataviewPage ( ...
主要的四个文件 博文链接:https://zhao103804.iteye.com/blog/1884445
//返回DataView///6.public DataTable GetDataTableValue(string sql)//返回DataTable///7.public void ExecuteNonQuery(string sql)//执行一个SQL操作:添加、删除、更新操作 ///8.public int ExecuteNonQueryCount...
//dataView.append(ByteUtils.byteArrayToHexString(data,true) + "\r\n"); } } catch (Exception e) { ShowUtils.errorMessage(e.toString()); // 发生读取错误时显示错误信息后退出系统 System.exit(0); } ...
这个是我写的一个程序,里面集合C#多种操作,对于大家也许能起到一定的作用
具体代码如下: 代码如下: <% @ Page Language = ” C# ” %> <!...< script runat =”server” ... System.Data.DataView CreateDataSourceByXianhuiMeng() { System.Data.DataTable dt = new System
<script src="./esl/esl.js"></script> </head> <div id="main" style="height:400px"></div> <script type="text/javascript"> var mydata = [20,3,50,10,20,30]; var mydata1 = [10,2,0,-3,12,20]; var...
基于flask+pyecharts实现了一个图表大屏,基于ajax实现动态刷新数据。 教程地址:https://blog.csdn.net/pvlking/article/details/121249495
利用DataView 创建多选树形.。前台根据JSON创建node
一款基于 Vue 3.0+, Vite 3.0+, Pinia 2.0+, TypeScript 4.0+, ECharts 5.0+数据可视化应用搭建工具
漂亮的Extjs图片展示组件实例,类似于幻灯片,可直接拿去用,非常不错的哦
高级消防员培训资料,有兴趣大家学习学习,高级消防员培训资料,有兴趣大家学习学习
NULL 博文链接:https://zheyiw.iteye.com/blog/2039859
程序的学习是一个循序渐进的过程,一些常用的或经典代码应该保存下来以便日后使用。本文就给出一些.net的经典代码,希望对大家有所帮助…… 1.弹出对话框.点击转向指定页面 Response.Write(""); Response....
本文将简单地介绍Ext的几个基本概念,和如何快速地做出一个动态的页面并运行起来,假设读者已具备了一些JavaScript经验和初级了解HTML Dom。 目 录 EXT 中文手册 1 EXT简介 3 目錄 3 下载Ext 4 开始! 4 Element:...
ext designer 设计实例 实例包括form window grid listview panel dataview tabs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define;.amd?define([],e):"object"==typeof exports?exports.Hls=e():t.Hls=e()}(this,...