EXT 4.2 combo运用TPL 下拉表格
2014-06-12 12:42
295 查看
@CHARSET "UTF-8"; .mytable a { color: #c75f3e; } .mytable { width: 100%; border-left: 1px solid #c1dad7; border-top: 1px solid #c1dad7; padding: 0; } .mytable th { font: bold 11px "trebuchet ms", verdana, arial, helvetica, sans-serif; color: #4f6b72; text-align:center; border-bottom: 1px solid #c1dad7; border-right: 1px solid #c1dad7; letter-spacing: 2px; text-transform: uppercase; text-align: left; padding: 6px 6px 6px 12px; background: #cae8ea; font-size:13px; text-align: center; } .mytable td { border-bottom: 1px solid #c1dad7; border-right: 1px solid #c1dad7; background: #fff; font-size:13px; text-align:center; padding: 6px 6px 6px 12px; color: #4f6b72; } .mytable td.alt { background: #f5fafa; text-align:center; color: #797268; } /* 鼠标移上TR,改变背景色 */ .x-boundlist-item:hover td { background: #d6e8f6; border-color: #d6e8f6; }
EXT code
xtype: 'combo', store: new Ext.data.JsonStore({ pageSize:20, fields:[ {name:'id'},//id {name:'userName'},//姓名 {name:'card'}//身份证号 ], proxy: { type: 'ajax', actionMethods:'post', url: '${ctx}/hr/getUserListByUnitId.do?unitId=${unit.id}', reader: { type: 'json', root: 'list' } } }), displayField: 'userName', valueField:'id', minChars:1, anchor: '100%', fieldLabel: '负责人', name:'safeRectifyInfo.rectifyPersonId', forceSelection: true, typeAhead: false, hideTrigger:true, pageSize: 20, listConfig: { loadingText: '查找中.....', emptyText: '没有找到相关的人员', tpl:'<div style="width:100%;"><table class="mytable" cellspacing="0" width="100%" ><tr><th width=\'30%\' >姓名</th><th width=\'70%\' >身份证</th></tr><tpl for="."><tr class="x-boundlist-item" ><td >{userName}</td><td>{card}</td></tr></tpl></table></div>' }
相关文章推荐
- Ext 表格运用-Ext.grid.EditorGridPanel(带分页)
- 自定义ExtJS控件之Ext下拉树和Ext下拉表格
- Ext.form.ComboBox 表格下拉最终版本
- HTML下拉列表 textarea fieldset及表格的运用
- Extjs 多选下拉框 Ext.ux.form.LovCombo默认选择及其它BUG修复版支持多选/全选/全不选ext3.x
- EXT的formfield中combo下拉框为textfield赋值
- 自定义ExtJS控件之Ext下拉树和Ext下拉表格
- Extjs 多选下拉框 Ext.ux.form.LovCombo默认选择及其它BUG修复版支持多选/全选/全不选ext3.x
- ExtJS4.2实例:表格(Grid)含联动的下拉列表(Combobox)
- Ext TreeCombo 树形 下拉框,树形下拉框,EXT树形
- EXT.NET 通过NPOI运用EXCEL模板实现导出多表头GridPanel
- [原创]ExtAspNet秘密花园(十五) — 表格概述
- ext前台表格动态切换url并修改传递参数
- 关于下拉更新框架 EGORefreshTableHeaderView在Xcode4.2中, ARC下面的使用
- 可输入可联想的下拉列表的实现——Ext ComboBox
- jqgrid表格下拉搜索多选框优化—使用select下拉多选插件
- Ext JS 4.2 Beta版发布
- 关于Ext的Combo加载数据的问题。
- EXT简单的可编辑表格
- Extjs4.2布局——layout: accordion(Ext.layout.container.Accordion)