Perform calculation inside textbox

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

    Posted 15 Mar 2016 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
    2412 posts

    Posted 16 Mar 2016 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.
Back to Top