Hi,
is it possible using Conditional Formating with a bigger or smaller as value linke < or >
I want to filter values smaller than 0 (for a stock-management)
What is working like:
f["op"] = "cn";
f["value"] = "-";
best regards,
MArio
Refer demos/appear/conditional-format.php
$f = array();
$f["column"] = "id";
$f["op"] = ">";
$f["value"] = "12";
$f["cellcss"] = "'background-color':'red'";
$f_conditions[] = $f;
Hallo
is it possible to set a css-value (not on database) like
$f = array();
$f["column"] = "name";
$f["op"] = "cn";
$f["value"] = "f";
$f["css"] = "'before':'Dear Mrs.'";
$f_conditions[] = $f;
$f = array();
$f["column"] = "name";
$f["op"] = "cn";
$f["value"] = "m";
$f["css"] = "'before':'Dear Mr.'";
$f_conditions[] = $f;
… or is there another way to do this. It should not be set in database, its only for makeing the grid better readable.
Best regards,
Mario
You can append string using on_render event handler (in php).
Refer demos/editing/custom-events.php
It would be something like:
function filter_display($data)
{
foreach($data["params"] as &$d)
{
if (strstr("m",$d["name"]))
$d["name"] = "Dear Mr.".$d["name"];
else if (strstr("f",$d["name"]))
$d["name"] = "Dear Mrs.".$d["name"];
}
}