ShowTitleMenu="false"

5 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 25 Jul 2011 Link to this post

    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?
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 27 Jul 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 27 Jul 2011 Link to this post

    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 ;).
  5. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 27 Jul 2011 Link to this post

    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.

  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 27 Jul 2011 Link to this post

    Nope, perfect, that works!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017