Custom CSS on a row

QuestionsCustom CSS on a row
varun asked 10 years ago

using custom format:

$f = array();
$f["column"] = "DueDate";
$f["op"] = "??";
$f["value"] = "2013-11-25";
$f["css"] = "'background-color':'Bisque'";
$f_conditions[] = $f;

this is not executing for some reason!! and if i remove op and value,its running.
what can i do to check DueDate less than(invalid character so given ??) current Date.i mean how do i specify date in this above code and whats wrong here?why am i not getting result,

1 Answers
Abu Ghufran answered 10 years ago

Hello,

This is because the comparison is being done on Javascript level and it does not understand the YYYY-MM-DD convention.
Alternate is to format the duedate as date_format(duedate,'%Y%m%d') as duedate_custom … .and apply this formatting afterwards.

You can check demos/appearence/conditional-format.php sample, it contains conditional date formatting.

Your Answer

3 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?