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

How to display different msg in RadInputManager

4 Answers 64 Views
Input
This is a migrated thread and some comments may be shown as answers.
Arteta Sam
Top achievements
Rank 1
Arteta Sam asked on 23 Nov 2010, 02:23 AM
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

4 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 25 Nov 2010, 04:54 PM
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.
0
Arteta Sam
Top achievements
Rank 1
answered on 30 Nov 2010, 03:28 AM
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
0
Veli
Telerik team
answered on 30 Nov 2010, 08:25 AM
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.
0
Arteta Sam
Top achievements
Rank 1
answered on 01 Dec 2010, 12:39 PM
Dear Veli,

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

Cheers,
Nasri
Tags
Input
Asked by
Arteta Sam
Top achievements
Rank 1
Answers by
Veli
Telerik team
Arteta Sam
Top achievements
Rank 1
Share this question
or