随笔分类 -  extjs

摘要:一、 selType : 'checkboxmodel',singleSelect : true, // 单选multiSelect : true, // 多选singleSelects:['edit'] :表示只有选择一行记录时edit才可点击,其他情况被禁用,edit表示按钮的idmultiSe 阅读全文
posted @ 2018-05-31 10:41 Bob.Xie 阅读(2388) 评论(0) 推荐(0) 编辑
摘要:queryMode : 'local' 如果下拉框的值是本地数据,最好设定queryMode为local,这样可以提高用户的响应速度 阅读全文
posted @ 2018-05-28 11:24 Bob.Xie 阅读(319) 评论(0) 推荐(1) 编辑
摘要:1、日期相加: Ext.Date.add(new Date(), Ext.Date.DAY, 15) 2、Grid表格列可编辑: { header : "实际已交货量", tooltip : '实际已交货量', dataIndex : 'actualQuantityDelivered', width 阅读全文
posted @ 2018-05-28 10:05 Bob.Xie 阅读(452) 评论(0) 推荐(0) 编辑
摘要:// 司机,搬运工提成 var commissionMoney = (waybillsFtQty * commissionMoneyRatio / personCount).toFixed(2); // 重置配载列表司机与帮运工提成 for (var i = 0; i < planGrid.getStore().getCount(); i++) { var record = planGr... 阅读全文
posted @ 2018-04-17 16:21 Bob.Xie 阅读(1664) 评论(0) 推荐(0) 编辑
摘要:CustSuppGrid = Ext.create('Ext.grid.Panel', { title : '', // 标题头 iconCls : 'icon-grid', // 标题图标 store : CustSuppStore, // 数据源 frame : f... 阅读全文
posted @ 2018-01-12 10:12 Bob.Xie 阅读(2787) 评论(0) 推荐(0) 编辑
摘要:Extjs 1 var productCategoryTreeLookUpFn = function(callback) { 2 var productCategoryLookUpWindow; 3 var productCategoryTreeStore; 4 var productCategor 阅读全文
posted @ 2018-01-11 16:34 Bob.Xie 阅读(1323) 评论(0) 推荐(0) 编辑
摘要:1 { 2 header : "单号", 3 tooltip : '单号', 4 dataIndex : 'transportCode', 5 width : 13... 阅读全文
posted @ 2017-12-15 10:43 Bob.Xie 阅读(749) 评论(0) 推荐(0) 编辑
摘要:1、首先做一个容器 3、grid显示图片 阅读全文
posted @ 2017-12-08 17:13 Bob.Xie 阅读(3965) 评论(0) 推荐(0) 编辑
摘要:关于formpanel设置autoscroll:true同时出现横向和纵向滚动条的解决办法: 不要设置autoscroll属性,或者autoscroll:false,然后设置bodyStyle : 'overflow-x:hidden; overflow-y:scroll' 阅读全文
posted @ 2017-11-24 11:12 Bob.Xie 阅读(1213) 评论(0) 推荐(0) 编辑
摘要:var cmGoodsFee = new Ext.grid.ColumnModel([rmGoodsFee, { header : "id", tooltip : "id", dataIndex : 'id', id : 'id', width : 80, align : 'center', ... 阅读全文
posted @ 2017-09-02 23:09 Bob.Xie 阅读(3871) 评论(0) 推荐(0) 编辑
摘要:listeners : { tabchange : function(tp, p) { var allmapDIV = document.getElementById("allmap"); if (p.getId() == 'addPlanP... 阅读全文
posted @ 2017-08-30 00:04 Bob.Xie 阅读(1724) 评论(0) 推荐(0) 编辑
摘要:在Extjs4中,form提交时,文本框的emptyText会传到后台,比如 上图中的“请选择”这样的文本会作为值传到后台。 解决方法: form提交时配置 submitEmptyText: false即可。submitEmptyText默认为true 阅读全文
posted @ 2017-08-25 15:18 Bob.Xie 阅读(391) 评论(0) 推荐(0) 编辑

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