09 2012 档案

摘要:ExtJS自带表格组件中的行号,在删除某一行或某几行后,行号会变得不连续。因为源码中的函数如下:1 renderer: function(value, metaData, record, rowIdx, colIdx, store) {2 if (this.rowspan){3 metaData.cellAttr = 'rowspan="'+this.rowspan+'"';4 }5 6 metaData.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';7 ... 阅读全文
posted @ 2012-09-27 15:12 lihui_yy 阅读(1885) 评论(0) 推荐(0) 编辑
摘要:由于ExtJS版本不断更新,各种渲染方式也随之有所改变,目前大部分书籍还是停留在3版本,对于ExtJS4.1.1版本的表格渲染,设置表格行背景颜色的方式如下:首先,定义行的样式:1 .yellow-row .x-grid-cell{2 background-color:#FFFF00 !important;3 }4 .white-row .x-grid-cell{5 background-color:#FFFFFF !important;6 }7 .blue-row ... 阅读全文
posted @ 2012-09-26 17:14 lihui_yy 阅读(5402) 评论(0) 推荐(0) 编辑
摘要:xml文件内容如下:<EditText android:id="@+id/displayText" android:layout_width="fill_parent" android:layout_height="match_parent" android:singleLine="false" android:scrollbars="vertical" android:editable="false" android:textSize="12px" 阅读全文
posted @ 2012-09-19 15:21 lihui_yy 阅读(9556) 评论(0) 推荐(0) 编辑