Can disabled cache in render ?
Can disabled cache in render ?
![SuiteProG](https://secure.gravatar.com/avatar/d5225eeaaa2806ab036cee5cbd6f4f74/?default=https%3A%2F%2Fvanillicon.com%2Fd5225eeaaa2806ab036cee5cbd6f4f74_200.png&rating=g&size=120)
Hello,
Like in my sample : https://jsfiddle.net/SuiteProG/obL647z9/6/ the render function is call many times but work look like a cache is enabled.
Can I disabled cache for each call in render function write in my columns ?
In my sample, my column is hidden at 11:21:00. If show column at 11:22:00, the content of column will be 11:21:00. So I want write 11:22:00, like my render function return when showing column.
Is it possible ?
Thanks,
SuiteProG
This discussion has been closed.
Replies
Hi @SuiteProG ,
Yep, the
columns.render
function caches those values for fast lookup. There's two things you can do, usecolumn-visibility
to invalidate those cells in that column (see example here). Alternatively, usedrawCallback
orrowCallback
to redraw, but this will also be called whenever you search/page/order so is likely to be less efficient.Cheers,
Colin
Hi colin, thanks for your reply.
Your sample link is it correct ? I have the impression is it my link.
Cheers,
SuiteProG
That was interesting, I had the tab open still with the same URL but loading it again reverts back to yours. Hopefully this will do the trick here: https://jsfiddle.net/v2jnpam5/