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

    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. 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.

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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