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

ValidationSummary inside RadNotification

2 Answers 30 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Rama
Top achievements
Rank 1
Rama asked on 19 Aug 2014, 10:54 AM
Hi

I have my validationsummary control in the ContentTemplate of RadNotification and it used to work perfectly fine until I have upgraded the Telerik to the latest version. It is now not displaying the validation summary but pops up a blank notification. It actually displays anything that I add in the contenttemplate but not the validationsummary.
Do  you think there is anything that has knocked out in the latest version?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 19 Aug 2014, 11:56 AM
Hi Rama,

Unfortunately I Couldn't replicate the issue at my end. Please try the below sample code snippet which works fine at my end.

ASPX:
<telerik:RadTextBox ID="rtxtUserName" runat="server">
</telerik:RadTextBox>
<br />
<asp:RequiredFieldValidator ID="valUserName" runat="server" ErrorMessage="UserName is mandatory!"
    ControlToValidate="rtxtUserName" Display="None" ValidationGroup="MyInquiryForm">*</asp:RequiredFieldValidator>
<telerik:RadTextBox ID="rtxtPassword" runat="server" TextMode="Password">
</telerik:RadTextBox>
<br />
<asp:RequiredFieldValidator ID="valPassword" runat="server" ErrorMessage="Password is mandatory!"
    ControlToValidate="rtxtPassword" Display="None" ValidationGroup="MyInquiryForm">*</asp:RequiredFieldValidator>
<telerik:RadButton ID="rbtnSubmit" runat="server" Text="Submit" CausesValidation="true"
    OnClientClicked="OnClientClicked" ValidationGroup="MyInquiryForm">
</telerik:RadButton>
<telerik:RadNotification ID="rnotificationValidationSummary" runat="server" Position="Center"
    ShowCloseButton="true">
    <ContentTemplate>
        <asp:ValidationSummary ID="ContactValidationSummary" runat="server" ShowSummary="true" ShowMessageBox="false" HeaderText="Please notice that:" ValidationGroup="MyInquiryForm" DisplayMode="BulletList" />
    </ContentTemplate>
</telerik:RadNotification>

JavaScript:
function OnClientClicked(sender, args) {
    $find("<%=rnotificationValidationSummary.ClientID%>").show();
}

Please provide your code if it doesn't help.
Thanks,
Shinu.
0
Rama
Top achievements
Rank 1
answered on 20 Aug 2014, 08:44 AM
Hi Shinu

Thanks for your response. 
I just figured the problem is with the web config file where it says <httpRuntime targetFramework="4.5" />.
The ValidationSummary is displaying when I remove that line and vice versa.
Apologies for the panic, although I am little bit hazy why it doesn't work with the targetFramework tag on.

Thanks anyway.
Tags
Notification
Asked by
Rama
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Rama
Top achievements
Rank 1
Share this question
or