Telerik blogs

Latest

  • Web ASP.NET MVC

    Introduction to ASP.NET MVC – slides and demo project

    I had a presentation last week at MS DevDays Bulgaria and I thought I’d share it with you. I was very excited and somewhat nervous - this was my first presentation ever. Nervousness aside, the feeling cannot be compared to anything else – I was glad there are so much people out there who are curious about the topic I’m interested in. It’s a kind of a win-win situation, where the attendees learn something new or see the things from another person’s point of view and the presenter learns even more on the topic from the questions the audience asks. Back to the...
    April 30, 2008
  • 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