scroll bars and rad alert window

2 posts, 0 answers
  1. sam
    sam avatar
    31 posts
    Member since:
    Jan 2008

    Posted 29 Dec 2009 Link to this post

    Hellow Team;

    how can i make my rad window alert scrollable!!!
    the following my code:

    string script;
                script = "<SCRIPT>";
                script += " radalert('scrollbars=1, " + message + "', 400, 100, '" + msgBoxTitle + "');";
                script += "</SCRIPT>";
    RegisterStartupScript("message", script);
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 30 Dec 2009 Link to this post

    Hello sam,

    I am not completley sure I understood you correctly but as far as I understood you want a radalert message with scrollbars. If so, what I can suggest is to choose one of the following options:

    1)  Create your own alert template where the wrapper DIV has explicit height set and overflow: auto, e.g as shown below:

    <telerik:RadWindowManager ID="AllWndRWM" runat="server" Behaviors="Resize, Minimize, Close, Move">
             <AlertTemplate>
                 <div class="rwDialogPopup radalert" style="height:30px; overflow:auto;">
                     <div class="rwDialogText">
                         {1}
                     </div>
                     <div>
                         <a onclick="$find('{0}').close();" class="rwPopupButton" href="javascript:void(0);">
                             <span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span> </span></a>
                     </div>
                 </div>
             </AlertTemplate>
         </telerik:RadWindowManager>

    2) Use a standard RadWindow instead of the predefined radalert and adjust its appearance according to your requirements.

    Kind regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top