Get Original Value of radinput (numeric)

2 posts, 0 answers
  1. Wired_Nerve
    Wired_Nerve avatar
    163 posts
    Member since:
    Oct 2007

    Posted 11 Mar 2014 Link to this post

    I have a bit of code that use to work until we upgraded to the newest version of the controls.
    But the ability to pull the myTextBox._orginalValue no longer works... Is there a supported method for this in the latest build of the controls?

    var saveIcon = $find(;
                   var orginalValue = myTextBox._originalValue;
                   if (orginalValue.length == 0) {
                       if (myTextBox._initialValue.length != 0)
                           orginalValue = myTextBox._initialValue;

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Mar 2014 in reply to Wired_Nerve Link to this post

    Hi Warren,

    Please have a look into the following code snippet to get the last updated value of the RadTextBox. 

    <telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Demo">
    <telerik:RadButton ID="RadButton1" runat="server" Text="Click" AutoPostBack="false"

    <script type="text/javascript">
        function ValueChange(sender, args) {
            var textbox = $find("<%=RadTextBox1.ClientID %>");
            var originalvalue = textbox._lastSetTextBoxValue;
            if (originalvalue.length == 0) {
                if (textbox._originalInitialValueAsText.length != 0)
                    originalvalue = textbox._originalInitialValueAsText;

    Please provide your code if it doesn't help.
  3. DevCraft R3 2016 release webinar banner
Back to Top