Styles

Sunday, April 25, 2010

Telerik Smarts

RAD Alerts

To convert the standard Javascript Alerts to the fancy RAD Alerts add this script within the <Head> tag.

<script type="text/javascript">
  window.alert = function(string)
  {
    radalert(string.replace(/-/g, "<br />•"), "auto", null, "Alert");
  }
</script>

Add the RadWindowManager in the page and configure it with the appropriate Telerik Skin.

<telerik:RadWindowManager runat="server" 
    ID="alertWindowManager" 
    Skin="Default" 
    AutoSize="true" 
    Animation="None" />

Themes and Demos

There are also plenty of pretty cool demos of all the controls that telerik have created:

http://demos.telerik.com/aspnet-ajax/window/examples/windowmanager/defaultcs.aspx

No comments :