Validation question

5 posts, 0 answers
  1. Jaime Alberto Jaramillo Zapata
    Jaime Alberto Jaramillo Zapata avatar
    10 posts
    Member since:
    Feb 2009

    Posted 30 Sep 2009 Link to this post

    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
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 01 Oct 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jaime Alberto Jaramillo Zapata
    Jaime Alberto Jaramillo Zapata avatar
    10 posts
    Member since:
    Feb 2009

    Posted 01 Oct 2009 Link to this post

    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
  5. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 01 Oct 2009 Link to this post

    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.
  6. Julian
    Julian avatar
    8 posts
    Member since:
    Dec 2008

    Posted 01 Oct 2009 Link to this post

    nevermind, we fixed already
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017