Telerik blogs

Latest

  • Web

    History Enabled Script Manager and Silverlight

    A.k.a Deep Linking in Silverlight Undoubtedly Silverlight offers a myriad of useful features that can enhance the user and development experience – Binding, Multithreading, Layout System, Animations to name a few. But the fact that it is in essence a browser plug-in leads to certain limitations or “hurdles” for the user experience. Deep Linking? Why? One such thing is the lack of Deep Linking, i.e. the browser’s address bar contains the starting page for the application but any change in its state is not reflected in the address. Some people argue that there is difference between Web Applications and Web Pages and while the...
    April 30, 2008
  • Web ASP.NET AJAX

    RadEditor... on msdn2.microsoft.com

    It has been some time this was in the making... and as of the beginning of this week RadEditor is the editor one uses to submit community content in MSDN. Here is a hasty screenshot I made for you: To my best knowledge, this is the fifth Microsoft team that adopts the RadEditor, yet I believe it is the first team to use it on a public Microsoft site (besides, such an important one). The other teams using the editor are doing internal MS content, and since I have not explicitly asked for permission to list their names here, I will...
    April 29, 2008
  • Web

    Silverlight 2.0 Custom Scroll Viewer with Mouse Wheel

    In this blog post i will demonstrate how to customize Scroll Viewer and enable the mouse wheel functionality. I would be using the mix08 controls for  silverlight 2.0. they are  free and with open license. Before start please download Mix08 Controls. 1. Extract them and then open MixControls, after that see generic.xaml file, and open it. Find and copy the ScrollViewer style, it should be something like: .cf { font-family: Courier New; font-size: 10pt; color: black; background: white; } .cl { margin: 0px; } .cln { color: #2b91af; } .cb1 { color: #a31515; } .cb2 { color: blue; } .cb3 { color: red; } .cb4 { color: green; }    <Style x:Key="ScrollBarStyle" TargetType="ScrollBar">           <!-- Any other properties you want to set -->           <Setter Property="Template"> 2. Open your Silverlight project in VS 2008, and go to App.xaml and paste in the <Application.Resources> the style for the scroll viewer....
  • Web ASP.NET AJAX

    The dark side of static members

    Often we find it easy to create a class with a static event to keep the controls in our web application loosely coupled. The easiest way to make a number of controls interact without “knowing” about each other is to have a static event distributor class. public class EventDistributor {     public static event EventHandler SomethingHappened;     public static void RaiseSomethingHappened(object sender, EventArgs e)     {         if (SomethingHappened != null)         {             SomethingHappened(sender, e);         }     } } Some of the controls raise the events of the distributor… protected void Button1_Click(object sender, EventArgs e) { …     EventDistributor.RaiseSomethingHappened(sender, e); … } …and others subscribe to them protected void Page_Load(object sender, EventArgs e) {   ...
    April 18, 2008
  • Web ASP.NET AJAX

    Items drag and drop for RadGrid

    In the eve of the official release of RadControls for ASP.NET AJAX suite (formerly known as Prometheus) I have decided to present you with a new feature of the RadGrid control. Besides of .Net 3.5 data binding optimizations, calculated columns and more other new enhancements, in the latest version of the control you can now find built-in support for items drag and drop. Through both the client and server -side events you can precisely handle dragging and dropping to same or other RadGrid instances as to other html elements.
    April 16, 2008