Perform calculation inside textbox

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    2 posts
    Member since:
    Apr 2013

    Posted 15 Mar Link to this post


    I'm wondering if anyone has come up with a way to perform calculations within a single TextBox or NumericTextBox?

    For example, if I enter "3+5" as the text and then remove focus from the TextBox, I'd want the text value to update to "8". Similarly for other operations such as division or multiplication.

    I've seen this behavior within other web applications ("You Need a Budget" comes to mind) and am wondering if a framework exists rather than building from scratch in javascript.



  2. Vessy
    Vessy avatar
    1350 posts

    Posted 16 Mar Link to this post

    Hi Jeff,

    No, I am afraid that RadTextBox does not provide such calculation functionality out-of-the-box and you will need to implement it on your own. You can find useful the RadTextBox's client-side OnBlur even during this process:

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top