Telerik blogs

Latest

  • Web ASP.NET AJAX

    Memory Leaks and Memory Consumption in web applications (Part 2)

    This post is number two in a three part series about memory consumption for web applications in general. Click here to read the first post. Memory leak examples In this post, we will look at different examples of leaks. The examples presented are as close as possible to real situations. Their purpose is to present several patterns that usually cause memory leaks. A way to manage the leakage is given along with the examples. The examples rely on the use of the ASP.NET AJAX Framework. Let’s start with a simple example of attaching a click event to a button element: Attaching event handlers HTML: <form id="form1" runat="server">        <asp:ScriptManager ID="theScriptManager" runat="server" />        <div id="buttonContainer">              ...
  • Web ASP.NET AJAX

    VSIX Package deployment and users in the same machine

    A customer of ours faced a very interesting issue we were able to solve earlier today.   The problem was that when Visual Studio run under the context of his account, all the Telerik VSExtensions were available in the Extension Manager. On the other hand, when Visual Studio run as a different user, the Telerik WebUI VSExtensions were missing.   The problem is very likely to happen if you run Visual Studio under different accounts to test your applications with limited permissions. It happens when you usually install the Telerik VSExtensions through the installer and you decide to install a newer version through the Extension Manager:   The...
  • Web ASP.NET AJAX

    Memory Leaks and Memory Consumption in web applications (Part 1)

    This post is number one in a three part series about memory consumption for web applications in general. Since the Web 2.0 era, Web Applications have changed for the better. They provide more functionality, better usability and improved performance. However this tendency led to increased complexity. It is not unusual for a user to stay on a single page for hours without leaving. The browser would just poll data from the server through Ajax requests and display it in even more interesting manners. Therefore it is no wonder that web applications have become hungrier for resources and the browsers couldn’t...
  • Web

    Performance Improvements in RadSlider

    As Miro mentioned in his last post, with the upcoming 2011 Q1 Beta, we will release a new and improved version of RadSlider. A lot new features are being added and many of the existing hot spots were addressed along the way. One of them - the performance hit when RadSlider has to re-render its ticks. I took the liberty to compare the impact of RadSlider on an application before and after we made the improvements. Scenario: Every second, for 60 seconds, generate a new ViewModel and set it as DataContext to RadSlider. Goal: See how many times the LayoutUpdated event will...
    April 22, 2011
  • Web

    Telerik Data Virtualization, WCF RIA Services and Visual Studio Async CTP

    Last week (MIX 2011), Microsoft released the second Visual Studio Async CTP and I’ve decided to give it a try and implement one of my blog posts related to our Silverlight Data Virtualization with WCF RIA Services. To do this I’ve made two extension methods for DomainContext: LoadAsync<T>() and CountAsync<T>(). The first method will return the entities from a EntityQuery<T> and the second will return asynchronously count for the specified query.   And here is the result:   As you can see the only hardcoded value here is LoadSize for the virtual collection and everything else is retrieved and applied asynchronously using...