ValidationSummary inside RadNotification

3 posts, 0 answers
  1. Rama
    Rama avatar
    7 posts
    Member since:
    Jul 2014

    Posted 19 Aug 2014 Link to this post


    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Aug 2014 in reply to Rama Link to this post

    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.

    <telerik:RadTextBox ID="rtxtUserName" runat="server">
    <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">
    <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:RadNotification ID="rnotificationValidationSummary" runat="server" Position="Center"
            <asp:ValidationSummary ID="ContactValidationSummary" runat="server" ShowSummary="true" ShowMessageBox="false" HeaderText="Please notice that:" ValidationGroup="MyInquiryForm" DisplayMode="BulletList" />

    function OnClientClicked(sender, args) {

    Please provide your code if it doesn't help.
  3. Rama
    Rama avatar
    7 posts
    Member since:
    Jul 2014

    Posted 20 Aug 2014 in reply to Shinu Link to this post

    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.
Back to Top