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

RadInputManager - Validation Summary

5 Answers 144 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dick
Top achievements
Rank 1
Dick asked on 30 Jun 2011, 10:37 AM
I like to use a validation summary alert with the RadInputManager. Can anyone provide me with an example?

Kind regards,
Dick van Straaten

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2011, 11:05 AM
Hello Dick,

Try setting ShowMessageBox property to true. Here is a sample code.
aspx:
<telerik:RadInputManager runat="server" ID="RadInputManager1">
     <telerik:TextBoxSetting>
      <Validation IsRequired="true" />
           <TargetControls>
            <telerik:TargetInput ControlID="TXT" />
           </TargetControls>
     </telerik:TextBoxSetting>
</telerik:RadInputManager>
<asp:TextBox runat="server" ID="TXT" />
<asp:Button Text="Submit" runat="server" />
<asp:ValidationSummary runat="server" ShowMessageBox="true" ToolTip="Must type in textbox!"
 HeaderText="Header" />

Thanks,
Shinu.
0
Dick
Top achievements
Rank 1
answered on 30 Jun 2011, 12:53 PM
Hi Shinu,

Okay, the ValidationSummary works, but the RadInputManager still shows the error-message in the TextBox.

Do you know how to disable the error-message in the TextBox?

Regards,
Dick
0
Shinu
Top achievements
Rank 2
answered on 01 Jul 2011, 11:03 AM
Hello Dick,

Try setting ShowSummary property as "false".

aspx:
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
ToolTip="Must type in textbox!" HeaderText="Header" ShowSummary="false" />

Thanks,
Shinu.
0
Dick
Top achievements
Rank 1
answered on 01 Jul 2011, 08:45 PM
Sorry, but don't mean the Validation Summary text, but the errormessage in the textbox which is validated.
0
Accepted
Mira
Telerik team
answered on 06 Jul 2011, 03:49 PM
Hello Dick,

In order to implement the desired functionality, I suggest that you set the ErrorMessage property of the corresponding TextBoxSetting.

I hope this helps.

Kind regards,
Mira
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Input
Asked by
Dick
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dick
Top achievements
Rank 1
Mira
Telerik team
Share this question
or