Friday, 15 August 2014

c# - Creating and showing a Telerik RadNotification programmatically -



c# - Creating and showing a Telerik RadNotification programmatically -

i'm trying have radnotification pop in event handler in c# code. tried similar this:

the markup,

<asp:button> ... onclick="onclick"</asp:button>

and codebehind,

protected void onclick(...) { new radnotification().show("some text"); }

but doesn't work. telerik documentation doesn't seem have much info on creating these notifications in codebehind.

thanks

this works me...

markup

<telerik:radnotification id="radnotification1" runat="server" visibleonpageload="false" width="300px" height="100px" enableroundedcorners="true" enableshadow="true" title="my notification" position="center" titleicon="none" /> <telerik:radbutton runat="server" id="mybtn" text="show notification" onclick="mybtn_click" />

code behind

protected void mybtn_click(object sender, eventargs e) { radnotification1.show("some text"); }

modify radnotification attributes necessary.

cheers

c# asp.net notifications telerik

No comments:

Post a Comment