Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to invalidate the displayValue cache for a ListGridField

$
0
0
I have a ListGridField that uses an optionDataSource with a special optionOperationId and optionCriteria. The problem is that when I change the optionCriteria the displayValue no longer shows up correctly. Instead, the valueField displays. If I switch back to the previous criteria the displayValue appears. If I start editing the record the correct displayValue appears in the SelectItem, but not when editing ends the valueField reappears.

I think what is happening is that the initial fetch populates a static valueMap which is not cleared and refetched when the optionCriteria is changed. I thought I saw an api to invalidateDisplayValueCache or something like that, but I can't seem to find it.

Viewing all articles
Browse latest Browse all 4756

Trending Articles