RadCalculator History/Events

2 posts, 0 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Oct 2011

    Posted 26 Apr 2012 Link to this post

    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
  2. Ivan Ivanov
    Ivan Ivanov avatar
    1116 posts

    Posted 26 Apr 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top