RadNotification title icon and text randomly not working

4 posts, 0 answers
  1. Dariaus.
    Dariaus. avatar
    2 posts
    Member since:
    Aug 2012

    Posted 10 Sep 2013 Link to this post

    Hi,

    I have a RadNotification which uses a ContentTemplate. The title icon and title text sometimes defaults to the normal info "i" icon and nothing for the title text. These properties are set on the server on the Master page to be a custom image and text. The content in the template area always appears correctly but title icon and text sometimes don't work and it appears to be happening at random.

    Thanks,
    Dariaus
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Sep 2013 Link to this post

    Hi Dariaus,

    Please have a look at the following code that I have tried to set the title icon and text of RadNotification in Master page code behind.

    Master Page ASPX:
    <telerik:RadNotification ID="RadNotification1" runat="server" VisibleOnPageLoad="true"
        Width="330" Height="130">
        <ContentTemplate>
            <telerik:RadButton ID="RadButton1" runat="server" Text="Demo">
            </telerik:RadButton>
            <telerik:RadTextBox ID="RadTextBox" runat="server">
            </telerik:RadTextBox>
        </ContentTemplate>
    </telerik:RadNotification>

    Master Page C#:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadNotification1.TitleIcon = "~/Images/plus.gif";
        RadNotification1.Title = "Notification Title";
    }

    Thanks,
    Princy.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dariaus.
    Dariaus. avatar
    2 posts
    Member since:
    Aug 2012

    Posted 11 Sep 2013 Link to this post

    This is more or less what I have in my code, except I set LoadContentOn="EveryShow" and I do not  set VisibleOnPageLoad="true" because only certain occasions require a notification. In my code, an event is fired, variables are set and RadNotification1.Show() is called.
  5. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 13 Sep 2013 Link to this post

    Hi Dariaus,

    I tried to reproduce the described problem in a sample page that was prepared according to the provided information, but to no avail. You can find it attached to this post, please compare it to your actual project and check if there are differences in the setup.

    You can check whether there are server-side settings or CSS styles that are overriding the specified title and icon of the notification.

    If you are still having difficulties, please send step-by-step instructions for modifying the attached page so that the problem can be reproduced in it. This will allow me to inspect the issue locally and suggest a concrete solution.

    Regards,
    Slav
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top