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

Icons

3 Answers 136 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 22 Aug 2012, 10:24 PM
Deat Telerik-Team

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

Regards,
Christian

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Aug 2012, 04:57 AM
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.
0
Guru
Top achievements
Rank 1
answered on 22 Dec 2012, 06:08 AM
How can i hide RadNotification content icon always hide? 
0
Marin Bratanov
Telerik team
answered on 25 Dec 2012, 11:53 AM
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.
Tags
Notification
Asked by
Christian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Guru
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or