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

Not displaying title and content

2 Answers 172 Views
Notification
This is a migrated thread and some comments may be shown as answers.
David Rhodes
Top achievements
Rank 1
David Rhodes asked on 17 May 2013, 12:35 PM
Hi, I'm trying to fire the Notification on button click. The Notification is displaying but the title and content are empty, any ideas why?

<telerik:RadNotification ID="Notification" runat="server" Position="Center"
    AutoCloseDelay="10000" Width="350" EnableRoundedCorners="true" ContentIcon="none" KeepOnMouseOver="true" ShowCloseButton="false">
    <ContentTemplate>
        <asp:Literal ID="NotificationText" runat="server" />
    </ContentTemplate>
</telerik:RadNotification>

protected void SaveQuoteButton_Click(object sender, EventArgs e)
{
    Notification.Title = "Save Title";
    NotificationText.Text = "Save Text";
    Notification.Show();
}

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 May 2013, 04:15 PM
Hello David,

The most likely reason is that this is a partial postback that does not update the RadNotification control. Adding it as an UpdatedControl in the AjaxSetting (or moving it to the same UpdatePanel, depending on the setup you have) should resolve this.

You may also find interesting the server-side Show(newText) method: http://demos.telerik.com/aspnet-ajax/notification/examples/servershowwithnewtext/defaultcs.aspx. It can change the text only, but it will not require that the control is included in the partial postback.


Kind regards,
Marin Bratanov
the Telerik team
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 their blog feed now.
0
Ahmad
Top achievements
Rank 1
answered on 22 Jan 2018, 08:09 AM

i have same problem and it was because my button id was ="btnview" and problem gonna after i change it


Tags
Notification
Asked by
David Rhodes
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Ahmad
Top achievements
Rank 1
Share this question
or