ExtJS GridPanel 根据条件改变字体颜色
<View>
<ext:GridView ID="GridView1" runat="server">
<GetRowClass Fn="setRowBg" />
</ext:GridView>
</View>
2、加入js脚本
<script language="javascript" type="text/javascript">
function setRowBg(rd, ri, ro) {
var zhb,lj,xzh;
zhb=rd.data.zhb;
lj=rd.data.lj
xzh=rd.data.xzh;
if (xzh=="正向")
{
if (zhb>lj)
{
ro.tstyle = "color: #F57D02; ";
}
else
{
ro.tstyle = "background-color:none;";
}
}
if (xzh=="反向")
{
if (zhb<lj)
{
ro.tstyle = "color: #FFE37E; ";
}
else
{
ro.tstyle = "background-color:none;";
}
}
}
</script>
extjs 的权限问题 要求控制的对象是 菜单,按钮,URL
解题思路1:重载Connection类由于extjs和server端交互全都是json格式的数据交互,server端不会控制页面的跳转,页面跳转,提示功能全都有extjs来完成。extjs
ExtJs3.0中Store添加 baseParams 的Bug
this.store.on('beforeload',function(){Ext.apply(Ext.getCmp("propTypeGrid").store.baseParams,{参数1:'111',参数2:'111'});});但是在3.0中这样无法增加参数,于是在ExtJs官方论坛上找
ExtJS 学习专题(一) 如何应用ExtJS(附实例)
要使用ExtJS,先要得到ExtJS库文件,ExtJS库文件可以到ExtJS官网下载,地址是www.extjs.com/products/gxt/download.php,把下载得到的ZIP压缩文件解压缩到【D:ExtCode
编辑:广州明生医药有限公司
标签:参数,跳转,页面,文件,要得