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

scroll bars and rad alert window

1 Answer 225 Views
Window
This is a migrated thread and some comments may be shown as answers.
sam
Top achievements
Rank 1
sam asked on 29 Dec 2009, 12:52 PM
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);

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 Dec 2009, 01:21 PM
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.
Tags
Window
Asked by
sam
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or