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

Validation question

4 Answers 76 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
Jaime Alberto Jaramillo Zapata asked on 30 Sep 2009, 09:10 PM
Hi guys
We are currently using a rad input manager to extend some controls. It works all right until I reach the validations.
I was wondering if the validations provided by the rad input manager are able to stop the postback the same way a traditional aspnet validation control does WITHOUT using a validation control (ie regular expression validator, required validator)
Cheers

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Oct 2009, 10:17 AM
Hello,

Yes, the RadInputManager's validation stops the postback. If this doesn't happen in your case, please check for some Javascript errors. Send us a sample page if the problem persists.

<%@ Page Language="C#" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 
<title>RadControls for ASP.NET AJAX</title> 
</head> 
<body> 
<form id="form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
 
<telerik:RadInputManager ID="RadInputManager1" runat="server"
<telerik:NumericTextBoxSetting> 
    <Validation IsRequired="true" /> 
    <TargetControls> 
        <telerik:TargetInput ControlID="TextBox1" /> 
    </TargetControls> 
</telerik:NumericTextBoxSetting> 
</telerik:RadInputManager> 
 
<p>The following field is required. Try posting:</p> 
 
<asp:TextBox ID="TextBox1" runat="server" /> 
 
<asp:Button ID="Button1" runat="server" Text="PostBack" /> 
 
</form> 
</body> 
</html> 


Best wishes,
Dimo
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
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
answered on 01 Oct 2009, 01:26 PM
This is how thing are working:
I'm creating the control on a class, which inheriths from the aspnet standard control.
I have a page which has a tabstrips and a set o pageviews. This control has a ajax manager.
Every pageview loads a control dinamically. Each control is a form which has a set of aspnet controls (including text boxes) controled by a rad input manager.
The rad input manager is configured as you explain on the samples.
The postback stopping is not working.
Is possible to build this scenary.
If you need code, let me know
Cheers
0
Dimo
Telerik team
answered on 01 Oct 2009, 02:40 PM
Hi Jaime Alberto Jaramillo Zapata,

In such cases it is better to send us a simple, but complete runnable project, so that we can test it locally. You can send attachments in regular support tickets. Thank you in advance.

Kind regards,
Dimo
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
Julian
Top achievements
Rank 1
answered on 01 Oct 2009, 10:29 PM
nevermind, we fixed already
Tags
Input
Asked by
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
Julian
Top achievements
Rank 1
Share this question
or