Telerik RadNotification问题 [英] Telerik RadNotification issue

查看:66
本文介绍了Telerik RadNotification问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Radnotification显示超时通知(请参阅下面的代码),但它显示了一个小橙色框,其中会显示菜单图标(参见图片)。将visible属性设置为false不能解决问题。我错过了什么?请建议。

如果我在超时期间关闭通知窗口,它会在关闭后的1分钟内重新出现。这似乎是默认行为。有没有办法配置或更改此行为?



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?

<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>







.infoIcon, .notificationContent  
{  
    display: inline-block;  
    zoom: 1;  
    *display: inline;  
} 
.infoIcon  
{  
     width: 32px;  
     height: 32px;  
     margin: 0 10px ;  
     vertical-align: top;  
}

推荐答案

我找到了解决问题的方法。事实证明,css是这样的,所有列表项都以橙色显示,并且这是在我的控件中继承的。所以我找到了通知控件的特定样式元素,并添加了以下内容,这解决了我的问题。

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.
.rnCloseIcon
{
    list-style: none;
    background-image: none;
}


这篇关于Telerik RadNotification问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆