This is a migrated thread and some comments may be shown as answers.

RadInputManager OnBlur get_value()

8 Answers 151 Views
Input
This is a migrated thread and some comments may be shown as answers.
Derek Trickett
Top achievements
Rank 1
Derek Trickett asked on 04 Jun 2009, 07:18 PM
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()); 
                    } 

8 Answers, 1 is accepted

Sort by
0
Steve Y
Top achievements
Rank 2
answered on 05 Jun 2009, 12:21 AM
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
0
Derek Trickett
Top achievements
Rank 1
answered on 05 Jun 2009, 04:27 PM
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>
0
Nikolay Rusev
Telerik team
answered on 08 Jun 2009, 06:20 AM
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.
0
Derek Trickett
Top achievements
Rank 1
answered on 08 Jun 2009, 12:46 PM
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. 
0
Nikolay Rusev
Telerik team
answered on 09 Jun 2009, 04:26 PM
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.
0
Chris
Top achievements
Rank 1
answered on 12 Nov 2009, 08:23 PM
Are there any other work arounds for the OnBlur .get_value string being empty? I am using 2009.1.402.
0
Nikolay Rusev
Telerik team
answered on 18 Nov 2009, 07:35 AM
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.
0
Chris
Top achievements
Rank 1
answered on 18 Nov 2009, 02:12 PM
Thank you for the information Nikolay. I will pass this on to my team.
Tags
Input
Asked by
Derek Trickett
Top achievements
Rank 1
Answers by
Steve Y
Top achievements
Rank 2
Derek Trickett
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or