region:

This region's layout position (north, south, east, west or center). Read-only.

collapsible:true  收缩/展开

floatable:false  是否允许浮动

 删除window中的item,下标无效中

var items = win.items;
win.remove(items.last());

 选择行,getSelected()无效中

var selModel = grid.getSelectionModel();
if (selModel.hasSelection()) {
rs = selModel.getLastSelected();
Ext.Msg.alert("提示", rs.get('RoleID'));

获取表的store,使用store的ID无效

var store = Ext.getCmp('RoleAcc_operatePanel_Table').store;

 设置不允许为空的文本框

allowBlank:false,

多项不能为空

function setDiyTextField(){
Ext.ComponentMgr.all.each(function(cmp){
var Type=cmp.getXType();
if(Type=='textfield'||Type=='fileuploadfield'||Type=='combo'||Type=='treecombo'||Type=='datefield'||Type=='numberfield'||Type=='textarea'||Type=='timefield'||Type=='trigger'){
if(cmp.allowBlank==false){
cmp.cls="Diy-text";
cmp.blankText="该输入项不能为空!";
}
}
});
}

执行等待提示

Ext.MessageBox.show({
title: '请稍等',
msg: '正在提交数据...',
progressText: '',
width: 300,
progress: true,
closable: false,
animEl: 'loding'
}); Ext.MessageBox.hide();

 复选框自动赋值方法(一)

{
xtype: 'checkcolumn',
flex: 1,
text: '选中',
stopSelection: false,
renderer: function (val, m, rec) {
var flag = rec.get('id').split('_');
if (flag[1]=='true')
return (new Ext.grid.column.CheckColumn).renderer(true);
else {
return (new Ext.grid.column.CheckColumn).renderer(false);
}
}
}

复选框自动赋值方法(二)

后台的json:            
string str = "[{text:'总公司1',id:'123',check:false,children:[{text:'部门1',id:'234',leaf:true,check:true}]},{text:'总公司2',id:'258',leaf:true,check:false}]";
字符串中的check的值不能加单引号,否则到了前台就是字符串,永远为true
前台:  
Ext.define('Post', {
extend: 'Ext.data.Model',
fields: [{
name: "text",
convert: undefined
}, {
name: "id",
convert: undefined
}, {
name: "check",
convert: undefined
}]
}); //树中的checkcolumn行
{ text: 'checkcolumn', xtype: 'checkcolumn', flex: 1, dataIndex: 'check', stopSelection: false, }

过滤器

proAppStore.filterBy(function(record) {
return record.get('orgNameApp') == "IT";
});

Ext 项目随笔的更多相关文章

  1. [Java][Liferay] 解决Liferay ext项目deploy的问题

    Liferay ext project在install war包之后需要重启服务器,重启服务器中会执行ExtHotDeployListener中的逻辑,这里有一个坑,如果是第二次以后install e ...

  2. 第三次作业之Calculator项目随笔

    附:Github的链接:https://github.com/mingyueanyao/object-oriented/tree/master/Calculator 1.初见题目: 第一眼看到题目最大 ...

  3. ManyToMany【项目随笔】关于异常object references an unsaved transient instance

    在保存ManyToMany  时出现异常: org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.Tran ...

  4. ionic 项目 随笔

    1,首先 会进入src/index.html, <!-- The polyfills js is generated during the build process --> <sc ...

  5. 项目随笔@Service("testService")-------第二篇

    在springmvc中使用注解已经司空见惯了,今天见到了@Service("xxx")这种形式,让我大吃一惊.原来在service后面可以加参数,作为该service的名字,在sp ...

  6. 项目随笔之springmvc中freemark如何获取项目路径

    转载:http://blog.csdn.net/whatlookingfor/article/details/51538995 在SpringMVC框架中使用Freemarker试图时,要获取根路径的 ...

  7. 初探 Ext JS 6 (sencha touch/ext升级版)

    Sencha Touch 现在已全面升级至Ext Js 6,那么我们如何使用他们呢? 首先去官网下载最新的sdk和帮助文档 sdk下载地址:https://www.sencha.com/product ...

  8. EXT 基础环境搭建

    EXT 基础环境搭建使用 Sencha CMD 下载地址 https://www.sencha.com/products/extjs/cmd-download/ Sencha CMD 常用命令 API ...

  9. SenchaTouch介绍和Sencha Architect介绍以及安装

    一.SenchaTouch介绍 Sencha Touch框架是世界上第一个基于HTML 5的Mobile App框架. 在Sencha Touch这个名词中,包括了两个组成部分,其中Sencha的前身 ...

随机推荐

  1. unity, GL.TexCoord or GL.Color must put before GL.Vertex!!!

    GL.Begin(GL.QUADS);                //in unity, should use left hand rule        //RU        GL.TexCo ...

  2. CSS 使用小结

    1.文字过长显示省略号(....)  white-space: nowrap;overflow: hidden;text-overflow: ellipsis; 2.获取当前的ID : <asp ...

  3. ORACLE 常用日期函数

    1 . add_months(arg1,num) 返回日期arg1加num个月的新日期. select add_months(date'2011-1-1',1) from dual; result:  ...

  4. ie数组不支持indexOf 方法解决

    if(!Array.prototype.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0;i<this.length; ...

  5. [mysql] mysqldump 导出数据库表

    1.mysqldump的几种常用方法: (1)导出整个数据库(包括数据库中的数据) mysqldump -u username -p dbname > dbname.sql (2)导出数据库结构 ...

  6. C#写入登陆Cookies

    protected void Page_Load(object sender, EventArgs e) { //打开登录页面时获取客户端cookie值并写入前台控件中 HttpCookie cook ...

  7. Python基础教程【读书笔记】 - 2016/8/3

    希望通过博客园持续的更新,分享和记录Python基础知识到高级应用的点点滴滴! 第十一波:第11章  文件和素材 本章更进一步,让程序能够接触更多的领域:文件和流.接下来介绍的函数和对象可以让你在程序 ...

  8. Dell R410 broadcom网卡驱动更新失败

    问题描述: 最近遇到一个Dell R410 broadcom网卡驱动更新失败的问题.从官网上下载的驱动在安装的过程中都会自己回滚回来,很是困惑. 尝试解决: Dell官网现在提供的驱动一般最少有两种格 ...

  9. QT5中的信号与槽与C++ 11的function的配合

    最近将公司的界面开发库从WX转换到了QT,有了信号和槽,原本我们在使用WX的时候,为了使用信号,我们是使用BOOST的signal2库,到了QT有了信号槽,这个就没什么必要了 但是前段时间使用QT发现 ...

  10. Env: Linux下Source Insight安装

    1.Wine安装 sudo apt-get install wine 如果有错误,可以sudo apt-get update 2.下载source insight,注意要是安装版 http://www ...