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

RADMaskedTExtbox Javascript Problem

1 Answer 44 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 22 Oct 2010, 07:03 AM
Hi,
 I have Devloped Composit control(RADMaskedTExtbox,RadCombobox).i have written javascript as Follows in Composit Control Test page

 

 

function Callme() {

 


var

 

 

Input1 = $find("<%= TextBox1.ClientID %>");

 

Input1.SetValue(15);
}
i am calling this onblur function of Textbox ,i have added attribute on page load as

 

TextBox1.Attributes.Add(

 

"onblur", "Callme();");

 

 

 

It is throughing an error Null object.

Please help me how to resolve this

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 22 Oct 2010, 01:13 PM
Hello Kumar,

You should attaching this event to the RadMaskedTextBox's OnBlur client event. Like so:

TextBox1.ClientEvents.OnBlur = "CallMe";

The method signature for the CallMe method needs to change to this:

function CallMe(sender, args){
....rest of code
}

I hope that helps.
Tags
Input
Asked by
Kumar
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or