ExtJS 4.1 ActionColumn Dynamic CSSClass
来源:互联网 发布:什么微单最好 一款知 编辑:程序博客网 时间:2024/05/18 00:39
In ExtJS 4.1 there is a function for ActionColumn to dynamically change css class using user customized functiongetClass
One example is http://www.learnsomethings.com/2011/09/25/the-new-extjs4-xtype-actioncolumn-in-a-nutshell/
This one works in 4.0 but not in 4.1, the only problem is that when the new CSS Class is set using getClass, you have to call grid.refresh() function to explicitly tell the gridview to refresh.
This refresh will also refresh the row CSS Class, so the temporarily added "line-through" class in the example will be removed.
To make the "line-through" work, you need to put the logic into getRowClassfunction of viewConfig of that grid panel.
More details about the Grid View can be found here: http://docs.sencha.com/extjs/4.1.0/#!/api/Ext.grid.View
Grid View is NOT Grid Panel, but has been used by Grid Panel. All actions actually happens on View not the Panel itself.
- ExtJS 4.1 ActionColumn Dynamic CSSClass
- Extjs actioncolumn动态显示按钮
- ExtJS 4.1 Store & PagingToolBar Dynamic PageSize
- ExtJs actioncolumn根据grid数据动态显示按钮
- CSSClass 撰写
- EXTJS Grid 之ActionColumn ,添加最后 操作列,如编辑、下载、删除等。
- 实现extjs actioncolumn中点击图标 显示手型的偏方
- 实现extjs的Dynamic Grid
- 【ExtJs】表格控件Grid的增删改查,利用renderer让操作列actioncolumn使用文字而不是图标
- Style.CssClass属性
- button 后台设置CssClass
- actioncolumn vs MVC
- [gridview] -- ActionColumn源码
- [gridview] -- ActionColumn重写
- ExtJS4 actioncolumn动态显示图标
- yii2自定义GridView和ActionColumn
- dynamic
- @dynamic
- (step4.1.4)hdu 1551(Cable master——二分法)
- GSL矩阵计算之行列式2
- js string 转 int 注意的问题
- Wooden Sticks(hdu1051,LIS)
- android:descendantFocusability用法简析
- ExtJS 4.1 ActionColumn Dynamic CSSClass
- C# 自定义格式化字符串说明符
- delphi RegisterHotKey注册快键
- 华为心得
- phpcms中的$CATEGORY 数组
- SharedPreferences 的用法
- Cable master(hdu1551,二分查找)
- Gerrit 管理下git库分支导入
- getting start with storm 翻译 第六章 part-3