New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

TextChanged Event

The radtextbox control provides the TextChanged server event,which is raised when the AutoPostBack property is set to true, the user types valid entry, and the input loses focus.

The TextChanged event only occurs if the value of the input control actually changes. If the user changes the string in the input control but does not actually change the value, the TextChanged event does not occur.

The postback request can be controlled for RadTextBox by using the OnValueChanged client event of the control.

The TextChanged event handler receives two arguments:

  1. The RadInput control whose value was just changed. This argument is of type object, but can be cast to the appropriate type.

  2. An EventArgs object.

Use the TextChanged event handler to respond to changes in the control's text:

C#
protected void RadInput_TextChanged(object sender, EventArgs e)
{
	if (sender is RadTextBox)
	{
		RadTextBox tb = (RadTextBox)sender;
		Image1.ImageUrl = @"~/Images/" + tb.Text + ".gif";
	}
}

See Also

In this article
See Also
Not finding the help you need?
Contact Support