Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 根据另一个单元格的值更改日期单元格的字体大小_Asp.net_Jqgrid - Fatal编程技术网

Asp.net 根据另一个单元格的值更改日期单元格的字体大小

Asp.net 根据另一个单元格的值更改日期单元格的字体大小,asp.net,jqgrid,Asp.net,Jqgrid,我有一张jqgrid表格,上面有这个模型: { name: 'Readfl', formatter: GetImages, align: "center", width: "25", sortable: true, "resizable": true, search: true, edit: true }, { name: 'Datim', formatter: 'date', formatoptions: { 'srcformat': 'Y-m-d', 'newformat': 'd.

我有一张jqgrid表格,上面有这个模型:

 { name: 'Readfl', formatter: GetImages, align: "center", width: "25", sortable: true,    "resizable": true, search: true, edit: true },
{ name: 'Datim', formatter: 'date', formatoptions: { 'srcformat': 'Y-m-d', 'newformat': 'd.m.Y' }, width: "60", align: "center", hidden: false, "resizable": true, search: true }
如果'Readfl'为真,我想为'Datim'设置粗体字体的重量。 问题是我已经对“Datim”使用了“formatter”,并且我不能使用第二个格式化程序为“Datim”返回粗体文本。为什么要使用第二个格式化程序

谢谢

将CSS类添加到这些Datim单元格:

然后在CSS文件或html中:


但是我只想在Readfl为true时设置粗体字体的权重,如果不是,则设置为nobold@user576914那你就必须使用javascript了。当Readfl的值更改时,附加事件处理程序,然后以编程方式添加或删除css类。
{ 
  name: 'Datim',
  formatter: 'date',
  ...
  classes: "datim" 
}
<style type="text/css">
    .datim { font-weight: bold; }
</style>