I have a table with a column of values (let's say distances) and another column (with popupbuttoncells) that allows you to choose the unit (miles, meters, kilometers,...).
How can I force the value to update when the user selects another unit (I tried looking for some notification) and how can I let the valuetransformer find out which unit is selected?
Note that in all this I don't want to change the original value stored in the database whose unit is set to a default unit.
I could make an array with al the values precalculated, but if there are a lot and the user never changes the default unit, then it's a lot of wasted time waiting for the data to load.
Thanks
How can I force the value to update when the user selects another unit (I tried looking for some notification) and how can I let the valuetransformer find out which unit is selected?
Note that in all this I don't want to change the original value stored in the database whose unit is set to a default unit.
I could make an array with al the values precalculated, but if there are a lot and the user never changes the default unit, then it's a lot of wasted time waiting for the data to load.
Thanks