Disable cached display value?
Disable cached display value?
doctorjw
Posts: 12Questions: 0Answers: 0
I'm building a table where I'm displaying information for a store; a store can appear multiple times in the table. Based on the filtering that is established, I need to report on how many times a store appears in the table.
My initial approach is to use mDataProp and provide a function that grabs the set of filtered data for the table and simply count how many times a store appears, and render that as a column in the table. Yeah, a little funky maybe, but does provide the information that I need.
The issue that I'm having is that the display value is cached, so ... when the filtering criteria changes and new rows become visible as a result, I have stale data mixed with newly rendered up-to-date data.
Is there a way to disable the cache so these values are always newly calculated? Will a redraw of the table recalculate the values? I'll try that in the morning (working through this with an intern ... best that we learn together!).
Thanks,
john
My initial approach is to use mDataProp and provide a function that grabs the set of filtered data for the table and simply count how many times a store appears, and render that as a column in the table. Yeah, a little funky maybe, but does provide the information that I need.
The issue that I'm having is that the display value is cached, so ... when the filtering criteria changes and new rows become visible as a result, I have stale data mixed with newly rendered up-to-date data.
Is there a way to disable the cache so these values are always newly calculated? Will a redraw of the table recalculate the values? I'll try that in the morning (working through this with an intern ... best that we learn together!).
Thanks,
john
This discussion has been closed.