![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ExtJs
yan3730
这个作者很懒,什么都没留下…
展开
-
Ext.grid.Panel默认选择行
Grid加载数据后默认选择其中一行,在ExtJs4版本之前,可以通过 this.getSelectionModel().selectFirstRow(); 来选择,在ExtJs4.x的Ext.selection.Model中已经移除了selectFirstRow等方法,查看API可知,可通过selectRange选择: selectRange( startRow, endRow, [kee...2014-04-30 12:52:12 · 427 阅读 · 0 评论 -
Extjs4设置Ext.grid.Panel设置row颜色和高度
viewConfig : { forceFit : true, getRowClass : function(record, index) { if (index % 2 == 0) return "red"; else return "green"; } }, <style type="text/css"> .re...原创 2014-06-17 10:11:44 · 535 阅读 · 0 评论