This is a migrated thread and some comments may be shown as answers.

RadCalculator History/Events

1 Answer 92 Views
Calculator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 26 Apr 2012, 02:50 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 26 Apr 2012, 04:03 PM
Hi Robert,

Currently RadCalculator internally keeps track of the history records. However, we believe that exposing it publicly would be a step into the right direction, so that users would benefit from it. We will introduce a new public property to contain this information with our next week's Lib. As for your inquiry about control's events, we will consider this as a feature request and will implement some more informative events that illustrate the operations execution

All the best,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Calculator
Asked by
Robert
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or