4 Answers, 1 is accepted
I am not sure how you specify that you do not want the menu, but here is how the control is designed:
1) If you set ShowTitleMenu property to false, you can still have a menu associated with another target as shown in the demo:
http://demos.telerik.com/aspnet-ajax/notification/examples/notificationmenu/defaultcs.aspx
2) If you have not added any items, a blank menu is created - this is so to provide the ability to dynamically create and add items to the notification menu.
This being said, there is always a menu in order to provide more flexibility and cover more scenario.
However, I see your point and to achieve what you want you should set the Visible property of the menu (you can do this in markup or server code) to false - this will not load its scripts:
RadNotification1.NotificationMenu.Visible =
false
;
Please, test my suggestion and let me know how it goes.
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
We're using this as primarily a lightweight notification ("Your changes have been saved" kind of control)
Could you create a PITS to get the below implemented into a property in the markup perhaps for me? I'd like to be able to enforce that from a .skin level for the rest of the devs (also...less coding ;).
You could set Visible to false in the global Skin file you have used. e.g as shown below:
SkinFile.skin
<
telerik:RadNotification
runat
=
"server"
SkinId
=
"MySkin"
>
<
NotificationMenu
Visible
=
"false"
/>
</
telerik:RadNotification
>
SamplePage.aspx:
<
telerik:RadNotification
ID
=
"RNLogin"
runat
=
"server"
SkinID
=
"MySkin"
>
<
ContentTemplate
>
TEST
</
ContentTemplate
>
</
telerik:RadNotification
>
I tested this and it does what you require. Please, test it out and let me know how it goes.
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.