How to display different msg in RadInputManager

5 posts, 0 answers
  1. Arteta Sam
    Arteta Sam avatar
    31 posts
    Member since:
    Jan 2010

    Posted 22 Nov 2010 Link to this post

    Hi all,

    How can i display different msg in my input text box?
    For example like
             if users ignore that email textbox, <email is required>,
             then if error format will display      <invalid email >.

    My msg need to display in textbox like attechment.
    Isit posible?
    Any help is appreciated.

    Best regards,
    Nasri
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 25 Nov 2010 Link to this post

    Hi Nasri,

    Are you using RadInputManager or any of the RadInput controls? For RadInputManager, you can set the InputSetting's ErrorMessage property:

    <telerik:RadInputManager ID="RadInputManager1" runat="server">
        <telerik:TextBoxSetting ErrorMessage="<invalid email>">
            <Validation IsRequired="true" />
            <TargetControls>
                <telerik:TargetInput ControlID="T1" />
            </TargetControls>
        </telerik:TextBoxSetting>
    </telerik:RadInputManager>

    RadInput controls, however, do not have validators of their own, so you need to attach your own validator. This, however, means the error message cannot be shown inside the input off-the-shelf.


    Veli
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Arteta Sam
    Arteta Sam avatar
    31 posts
    Member since:
    Jan 2010

    Posted 29 Nov 2010 Link to this post

    Hi Veli,

    Sorry for late. Yes, i'm using radInputManager. What i want to do is i want 2 error msg display in 1 targetcontrol. is'it posible?
    i dont want if user ignore the textbox and error key in also display ==>invalid email.
    I want if he/she ignore, then display "please key in your email".
    else he/she error keyin,then display"invalid email".

    Thank you.

    Best regards,
    Nasri
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 30 Nov 2010 Link to this post

    Hello Nasri,

    Two different error messages are not supported by RadInputManager.

    Greetings,
    Veli
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. Arteta Sam
    Arteta Sam avatar
    31 posts
    Member since:
    Jan 2010

    Posted 01 Dec 2010 Link to this post

    Dear Veli,

    Thanks a lot for your advise.
    Have a nice day!

    Cheers,
    Nasri
Back to Top