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
155
How to publish an update event to an UltraCurrencyEditor
posted

Hi All, I am using the UltraControls v20.2 and I have a simple VB form in Visual Studio with an UltraCalcManager and a series of UltraCurrencyEditors and UltraNumericEditors.  The Editors are enabled for input and some of the editors have formulas defined using the values of the other editors.  For example:

CurrencyEditor5 = (CurrencyEditor1 * NumericEditor3) / 100

CurrencyEditor6 = (CurrencyEditor2 * NumericEditor4) / 100

CurrencyEditor7 = CurrencyEditor1 - CurrencyEditor5

CurrencyEditor8 = CurrencyEditor2 - CurrencyEditor6

CurrencyEditor11 = CurrencyEditor7 + CurrencyEditor8

Everything seems to work except when I change the value of either of the NumericEditors.  This doesn't update CurrencyEditor11 as I would expect.  It doesn't appear to change the value at all. 

If I modify the other CurrencyEditors this changes the dependent editors and also CurrencyEditor11.  But if I change the NumericEditors, although their directly dependent CurrencyEditors (5 and 6) are updated as well and the next level dependent CurrencyEditors (7 and 8), the CurrencyEditor11 value doesn't change.  Is there an explanation for this behaviour?

I've tried using the valueChanged event on the NumericEditor to run the Refresh method in CurrencyEditor11, but this doesn't seem to have any effect.  Is there another method I can run to publish the change in CurrencyEditor11?

Thanks,

Paul.     

Parents Reply Children
No Data