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

ShowTitleMenu="false"

4 Answers 72 Views
Notification
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 25 Jul 2011, 08:09 PM
If I specify that I dont want the title menu, why do you still render out the markup (and I assume then download the RadMenu scripts)?...doesn't that seem a little bloated?

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 27 Jul 2011, 10:59 AM
Hi Steve,

 
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.

Kind regards,
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.

0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 27 Jul 2011, 03:12 PM
Oh that looks like it'll work, good idea.

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 ;).
0
Accepted
Svetlina Anati
Telerik team
answered on 27 Jul 2011, 03:49 PM
Hi Steve,

 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.

All the best,
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.

0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 27 Jul 2011, 03:50 PM
Nope, perfect, that works!
Tags
Notification
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Svetlina Anati
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or