我在phpGrid上有一个表,有在单元格上添加条件格式的功能但是我需要更多的自适应选项......当在任何行中拖曳定义的单元格等于彼此我想要添加格式
例如,当在任何行中n个单元格nR == nT我想让它们成为红色
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg->set_conditional_format("orderNumber","CELL",array( "condition"=>"eq","value"=>"10107","css"=> array("color"=>"#ffffff","background-color"=>"green")));
// that is in documentation and i have tried this
$dg->set_conditional_format("orderNumber","CELL",array( "condition"=>"eq","value"=>$dg->columns['orderNumber'] ,"css"=> array("color"=>"#ffffff","background-color"=>"green")));
答案 0 :(得分:0)
什么是$dg->columns['orderNumber']
?我无法在他们online documentation的任何地方找到它。
我的猜测是你试图比较列之间的值。您可以查看他们的OnGridLoadComplete
事件处理程序示例: