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

RadNotification title icon and text randomly not working

3 Answers 322 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Dariaus.
Top achievements
Rank 1
Dariaus. asked on 10 Sep 2013, 03:31 PM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Sep 2013, 07:38 AM
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.

0
Dariaus.
Top achievements
Rank 1
answered on 11 Sep 2013, 08:20 AM
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.
0
Slav
Telerik team
answered on 13 Sep 2013, 10:33 AM
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.
Tags
Notification
Asked by
Dariaus.
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dariaus.
Top achievements
Rank 1
Slav
Telerik team
Share this question
or