Click here to Skip to main content
15,889,843 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am displaying timeout notification using Radnotification(see code below) but it shows a small orange box where the menu Icon would appear(see image). Setting the visible property to false does not resolve the issue. What am I missing? Please suggest.
If I close the notification window during the timeout, it reappears in 1 minute after closing. This seems to be the default behavior. Is there a way to configure or change this behavior?

C#
<telerik:RadNotification ID="RadNotification1"  runat="server" Width="240" Height="100" Position="Center" TitleIcon="" ShowTitleMenu="false" 
    EnableRoundedCorners="true" Title="Session Expiring"  önClientShowing="OnClientShowing" Value="MyPage.aspx" AutoCloseDelay="0"> 
    <ContentTemplate> 
        <div class="infoIcon"><img src="Images/infoIcon.jpg" alt="info icon" /></div>  
        <div class="notificationContent">Time remaining:  <span id="timeLbl">5:00</span>  
            <telerik:RadButton ID="continueSession"  runat="server" Text="Continue Your Session?"
                Style="margin-top: 10px;" AutoPostBack="false"  önClientClicked="ContinueSession">  
            </telerik:RadButton>  
        </div>  
    </ContentTemplate> 
</telerik:RadNotification>


CSS
.infoIcon, .notificationContent  
{  
    display: inline-block;  
    zoom: 1;  
    *display: inline;  
} 
.infoIcon  
{  
     width: 32px;  
     height: 32px;  
     margin: 0 10px ;  
     vertical-align: top;  
}
Posted
Updated 24-Feb-16 0:58am

1 solution

I found the solution to my issue. Turns out that the css is such that all list items are shown in orange and this was being inherited in my control. So I found the particular style element for the notification control and added the following and that solved my problem.
CSS
.rnCloseIcon
{
    list-style: none;
    background-image: none;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900