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

RadInputManager with ValidationSummary

1 Answer 47 Views
Input
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Jul 2010, 08:06 AM
Hi

I am using RadInputManager, however I also want the ValidationSummary to work to bring up a javascript alert only when the submit button is pressed. At the moment it is not working. Any ideas what I can do to get something like this working?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 16 Jul 2010, 07:39 AM
Hello Michael,

The following code will do the trick:
01.<asp:ScriptManager runat="server" />
02.    <telerik:RadInputManager runat="server" ID="RadInputManager1">
03.        <telerik:TextBoxSetting>
04.            <Validation IsRequired="true" />
05.            <TargetControls>
06.                <telerik:TargetInput ControlID="TXT" />
07.            </TargetControls>
08.        </telerik:TextBoxSetting>
09.    </telerik:RadInputManager>
10.    <asp:TextBox runat="server" ID="TXT" />
11.    <asp:Button Text="Submit" runat="server" />
12.    <asp:ValidationSummary runat="server" ShowMessageBox="true" ToolTip="Must type in textbox!"
13.        HeaderText="Header" />


Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Input
Asked by
Michael
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or