Icons

4 posts, 0 answers
  1. Christian Pardun
    Christian Pardun avatar
    112 posts
    Member since:
    May 2010

    Posted 22 Aug 2012 Link to this post

    Deat Telerik-Team

    I would be nice to have a property to show or hide the content and title icon.

    Regards,
    Christian
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Aug 2012 Link to this post

    Hi Christian Pardun,

    Try the following code snippet to show or hide the ContentIcon and TitleIcon.

    ASPX:
    <telerik:RadNotification ID="RadNotification1" runat="server" TitleIcon="~/Images/image1.jpg" ContentIcon="~/Images/image2.jpg" ........ >
    </telerik:RadNotification>
    <asp:Button ID="btn" runat="server" OnClientClick="OnClientClick(); return false;" />

    JS:
    <script type="text/javascript">
        var show = true;
        function OnClientClick() {
            if (show) {
                $telerik.$(".rnTitleBarIcon").hide();
                $telerik.$(".rnContentIconClip").hide();
                show = false;
            }
            else {
                $telerik.$(".rnTitleBarIcon").show();
                $telerik.$(".rnContentIconClip").show();
                show = true;
            }
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Guru
    Guru avatar
    2 posts
    Member since:
    Nov 2012

    Posted 22 Dec 2012 Link to this post

    How can i hide RadNotification content icon always hide? 
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Dec 2012 Link to this post

    Hi,

    Setting the ContentIcon to an empty string or "none" will hide the icon.


    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.
Back to Top