RadInputManager OnBlur get_value()

9 posts, 0 answers
  1. Derek Trickett
    Derek Trickett avatar
    10 posts
    Member since:
    Feb 2006

    Posted 04 Jun 2009 Link to this post

    Is it possible to get the value of an asp:TextBox that is a target of a RadInputManager in the OnBlur event?  Every thing I've tried, I get an empty string result.  These are methods I have tried:

                        function OnBlur(sender, eventArgs) { 
                            alert(eventArgs.get_targetInput().get_value()); 
                        } 

                        function OnBlur() { 
                            var manager = $find("<%= InputManager.ClientID %>"); 
                            var numericTextBox = manager.get_targetInput("<%= TestFees.ClientID %>"); 
                            alert(numericTextBox.get_value()); 
                        } 
  2. Steve Y
    Steve Y avatar
    115 posts
    Member since:
    Sep 2008

    Posted 04 Jun 2009 Link to this post

    Hi Derek,

    I came across this issue recently and reported it as a bug. I'm pleased to say that Telerik fixed it and it works fine in the latest internal build (Telerik.Web.UI_2009_1_602_dev_hotfix).

    Regards,
    Steve
  3. Derek Trickett
    Derek Trickett avatar
    10 posts
    Member since:
    Feb 2006

    Posted 05 Jun 2009 Link to this post

    get_value is now working in the latest build, however, set_value is not working in the OnBlur handler.

    function OnBlur(sender, eventArgs) { 
        var target = eventArgs.get_targetInput(); 
        var value = target.get_value(); 
        alert(value); 
        var newValue = value * 1000; 
        alert(newValue); 
        target.set_value(newValue); 
        alert(target.get_value()); 

    when the value is set as 1000, the three alerts give the following values:

    alert #1:  1000
    alert #2:  1000000
    alert #3:   <empty>
  4. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 08 Jun 2009 Link to this post

    Hello Derek,

    I am afraid that I was not able to replicate the problem on our end.
    Can you please take a look at the attached application and see whether I am missing something in order to replicate described behavior?

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Derek Trickett
    Derek Trickett avatar
    10 posts
    Member since:
    Feb 2006

    Posted 08 Jun 2009 Link to this post

    Thanks for the response Nikolay,

    I took your example, changed the TextBoxSetting to a NumericTextBoxSetting (Type="Currency") and the problem showed itself.  Please let me know if you are still unable to reproduce. 
  6. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 09 Jun 2009 Link to this post

    Hello Derek,

    Thank you for provided information. Indeed I was able to observe described behavior and already forward the issue to our developer for further investigation. Hopefully fix will be provided as soon as possible.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Chris
    Chris avatar
    35 posts
    Member since:
    Mar 2008

    Posted 12 Nov 2009 Link to this post

    Are there any other work arounds for the OnBlur .get_value string being empty? I am using 2009.1.402.
  8. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 18 Nov 2009 Link to this post

    Hello Chris,

    I am afraid that the fix is to complex for providing you with any kind of workaround. I will suggest you upgrade to latest version of RadControls for ASP.NET AJAX.

    Best wishes,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Chris
    Chris avatar
    35 posts
    Member since:
    Mar 2008

    Posted 18 Nov 2009 Link to this post

    Thank you for the information Nikolay. I will pass this on to my team.
Back to Top