随笔分类 -  EXTJS 4.2

EXTJS 4.2
摘要:items: [ { xtype: "fieldcontainer", layout: "hbox", items: [{ xtype: 'combo', name: 'ModelId', fieldLabel:... 阅读全文
posted @ 2017-01-11 15:26 秋风过、枯叶落 阅读(334) 评论(0) 推荐(0) 编辑
摘要:最初的store写法: var store = Ext.create('Ext.data.Store', { model: 'PKU',//这个地方CarPKU不是一个对象,而是一个类 remoteSort: false, remoteFilter: true, pageSize: limitCar 阅读全文
posted @ 2016-03-03 18:00 秋风过、枯叶落 阅读(2281) 评论(0) 推荐(0) 编辑
摘要:1.form 提交 form.form.submit({ url: "/HandlerExcelToDB/UploadFile.ashx", params: {}, success: function (formUpload, action) { var PicName = action.resul 阅读全文
posted @ 2016-03-02 10:23 秋风过、枯叶落 阅读(779) 评论(0) 推荐(0) 编辑
摘要:{ xtype: "fieldcontainer", layout: "hbox", items: [{ fieldLabel: '开始时间', name: 'Create... 阅读全文
posted @ 2016-01-09 15:33 秋风过、枯叶落 阅读(448) 评论(0) 推荐(0) 编辑
摘要:var insideGridStore = Ext.create('Ext.data.Store', { model: 'CarComponents',//这个地方CarComponents不是一个对象,而是一个类 pageSize: limit... 阅读全文
posted @ 2015-12-04 09:44 秋风过、枯叶落 阅读(2154) 评论(0) 推荐(0) 编辑
摘要:extjs控件有两个属性:一个是iconCls;另一个是icon。通过这两个属性可以对控件添加图标1.直接引用图标路径icon: '../icons/application_view_detail.png',//引用图标2.通过css文件调用图标css文件代码:.Applicationviewdet... 阅读全文
posted @ 2015-10-21 14:05 秋风过、枯叶落 阅读(2432) 评论(0) 推荐(0) 编辑
摘要:EXTJS 代码:第一种方法:{ title: '汽车信息管理', layout: 'fit', items: [ { xtype: 'treepanel', border: ... 阅读全文
posted @ 2015-09-01 11:26 秋风过、枯叶落 阅读(1045) 评论(0) 推荐(0) 编辑
摘要:bodyStyle: 'overflow-x:hidden; overflow-y:scroll',//显示滚动 文章来源:http://www.cnblogs.com/exmyth/archive/2013/04/15/3021861.html 阅读全文
posted @ 2015-07-16 11:53 秋风过、枯叶落 阅读(535) 评论(0) 推荐(0) 编辑
摘要:1.可以使用add(Ext.data.Record[] records)或者add(Ext.data.Record record)向store末尾添加一个或多个record。如:var newRecord=new PersonRecord({name:"Tom",age:22}); store.ad... 阅读全文
posted @ 2015-07-13 16:39 秋风过、枯叶落 阅读(6359) 评论(1) 推荐(1) 编辑
摘要:function clockGo() { Ext.TaskManager.start({ run: function () { //Ext.getCmp("clock").setText(Ext.Date.format(new Date(), 'g:i:s ... 阅读全文
posted @ 2015-06-26 17:08 秋风过、枯叶落 阅读(656) 评论(0) 推荐(0) 编辑
摘要://***********************************************左边树开始***********************************************//分组树Storevar treeStore = Ext.create('Ext.data.Tr... 阅读全文
posted @ 2015-05-23 17:51 秋风过、枯叶落 阅读(962) 评论(0) 推荐(0) 编辑
摘要:将时间\/Date(1432828800000+0800)\/"转换成:“年-月-日”//时间转换function ChangeDateFormat(val) { if (val != null) { var datetime = new Date(parseInt(val.replace("/Da... 阅读全文
posted @ 2015-05-22 09:39 秋风过、枯叶落 阅读(5431) 评论(0) 推荐(0) 编辑
摘要:listeners: { 'itemclick': function (view, record, item, index, e) { //Ext.MessageBox.alert("标题", record.data.cataId)... 阅读全文
posted @ 2015-05-21 11:19 秋风过、枯叶落 阅读(1169) 评论(0) 推荐(0) 编辑
摘要:css 样式:/*交流管理系统 开始*/tr.x-grid-record-blue .x-grid-td { background: #87CEFF; }/*grid 行颜色*/tr.x-grid-record-green .x-grid-td { background: #00ff90 }/*gr... 阅读全文
posted @ 2015-05-12 11:30 秋风过、枯叶落 阅读(1639) 评论(0) 推荐(0) 编辑
摘要:chart 柱状图Ext.require('Ext.chart.*');Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit', 'Ext.window.MessageBox']);var store... 阅读全文
posted @ 2015-04-26 11:17 秋风过、枯叶落 阅读(1333) 评论(0) 推荐(0) 编辑
摘要:Grid 根据数据源某列数据不同绑定不同的控件,例如:文本框和下拉框主要代码写在grid的 plugins: [rowEditing],下面这是定义的rowEditing对象,这里面的要定义成Ext.grid.plugin.CellEditing而不是Ext.grid.plugin.RowEditi... 阅读全文
posted @ 2015-04-21 17:55 秋风过、枯叶落 阅读(1047) 评论(0) 推荐(0) 编辑
摘要:{ xtype: 'combo', id: 'ApplyToModel', name: 'ApplyToModel', store: comStoreApplyToModel, ... 阅读全文
posted @ 2015-04-20 14:25 秋风过、枯叶落 阅读(342) 评论(0) 推荐(0) 编辑
摘要:var lstAddRecord = new Array(); store.each(function (record) { lstAddRecord.push(record.data); ... 阅读全文
posted @ 2015-04-16 15:50 秋风过、枯叶落 阅读(284) 评论(0) 推荐(0) 编辑
摘要:主要代码: { header: '属性值', dataIndex: 'PropertyValueName', width: 130, editor:... 阅读全文
posted @ 2015-04-16 09:24 秋风过、枯叶落 阅读(2335) 评论(1) 推荐(0) 编辑
摘要://SiteVariableConfigValue类,创立一个模型类 Ext.define("SiteVariableConfigValue", { extend: "Ext.data.Model", fields: [ { name: 'S... 阅读全文
posted @ 2015-04-10 16:32 秋风过、枯叶落 阅读(1023) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示