Set ShowInterval on Client Side or Show Invisible RadNotification on Client Side

3 posts, 0 answers
  1. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 15 Oct 2015 Link to this post

    I would like to do one of the following:

    1) Set ShowInterval value something like 5000 on RadButton (BtnSubmit here) from Client Side?
    2) Assuming I made RadNotification2 as invisible and possible to make it visible from below  or other Client Side Function?





    function CallClientShow() {
                            //    document.getElementById("divshowprocess").style.display = 'inline';
                            var notification = $find("<%=RadNotification2.ClientID %>");
                         <telerik:RadButton runat="server" Skin="Silk" ID="Submit" OnClientClicked="CallClientShow" Text="Submit" OnClick="Submit_Click">
                                        <telerik:RadNotification ID="RadNotification2" ShowCloseButton="false" ShowSound="info" runat="server" VisibleOnPageLoad="false"
                                        Position="BottomCenter" Skin="MetroTouch"
                                                     Width="579px" Height="100px" Animation="Slide" EnableRoundedCorners="true" EnableShadow="true"
                                                     Text="Please wait while your request is being processed!!!" KeepOnMouseOver="false" 
                                                     Title="Processing..." ShowTitleMenu="true" OffsetX="-20" OffsetY="-20" AutoCloseDelay="0">


    protected void Submit_Click(object sender, EventArgs e)
               // RadNotification2.Visible = true;

  2. Marin Bratanov
    Marin Bratanov avatar
    3567 posts

    Posted 16 Oct 2015 Link to this post

    Hi gc_0620,

    You can use the set_showInterval() method RadNotification provides:

    If a control's Visible property is set to false it does not render at all so such a notification cannot be shown with client-side code alone. Setting Visible to true on the server and calling the server Show() should do it, assuming the control is part of the response (i.e., it is included in the partial rendering if you are using AJAX).

    On a side note - you may want to look into the RadAjaxLoadingPanel control that shows a loading animation during AJAX requests without any additional code:


    Marin Bratanov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Telerik UI for ASP.NET Core is out
  4. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 17 Oct 2015 in reply to Marin Bratanov Link to this post

    Thanks Marin,

    By adding set_showinterval() in client side did the trick. Thanks again

    function CallClientShow()
       var notification = $find("<%=RadNotification2.ClientID %>");


Back to Top