This question is locked. New answers and comments are not allowed.
Is there an easy way to access the history on the RadCalculator control? I'm looking to save the history after the the final value of the calculation is calculated.
Currently to achieve this, I have created a new control that derives from RadCalculator. I've overridden OnApplyTemplate so I can pull the HistoryTextBox out of the control template, which gives me access to the history text. This gives rise to other problems, such as the fact that the history text is immediately nulled out when the equals button is clicked or the enter key is pressed.
Additionally, is there any way to intercept key events in the RadCalculator? I'd specifically like to be able to tell when a user presses the enter key. ValueChanged doesn't work, since it fires for every intermediate calculation, and obviously doesn't fire when the value doesn't change (such as adding zero).
In case it's unclear, the "History" I'm trying to access is the history seen in this visual structure: RadCalculator Visual Structure
Currently to achieve this, I have created a new control that derives from RadCalculator. I've overridden OnApplyTemplate so I can pull the HistoryTextBox out of the control template, which gives me access to the history text. This gives rise to other problems, such as the fact that the history text is immediately nulled out when the equals button is clicked or the enter key is pressed.
Additionally, is there any way to intercept key events in the RadCalculator? I'd specifically like to be able to tell when a user presses the enter key. ValueChanged doesn't work, since it fires for every intermediate calculation, and obviously doesn't fire when the value doesn't change (such as adding zero).
In case it's unclear, the "History" I'm trying to access is the history seen in this visual structure: RadCalculator Visual Structure