Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
436
Conditional Formatting Date/Time formula operations slow
posted

Hi,

I am using conditional formatting on some columns in my grid. One of the columns is a date/time column on which I have created a Formula condition such as this:

"datediff( "d" , [//FormulaCondition/ConditionValue] , today()  ) > 30"

This condition checks if the date of the column is at least 30 days in the past.

I find when I apply such a condition, the grid performs very slowly in scrolling etc. Also when I save the grid layout with this condition, it changes the UI render time from about 0.4 to 4 seconds.

I have experimented with other date/time functions (such as check if the cell value is equal to a particular date) and get similar poor performance.

 

Anyone experience this before? is this a bug?

 

Thanks!

David.

Parents
  • 436
    posted

    Hi,

    I was playing around with a sample program and I think I have found the cause of my slowdown. Many of my rows have a null value in the date/time column. Once I inserted a "isdbnull()" condition before the datediff condition and turned off "apply all matching conditions" option, the slowdown was completely fixed.

    I guess the date/time formulas have trouble dealing with null values.

    is this still a bug? At least there is a workaround for now.

Reply Children