Telerik blogs
  • Web

    Internet Explorer JavaScript Performance Tip - use the "children" property

    Today I was profiling the initialization time of RadTreeView for ASP.NET Ajax and found out that the biggest bottleneck was traversing the DOM tree. The code looks something like this: //get_childListElement() returns an HTML element  var childNodes = parent.get_childListElement().childNodes;  for (var i = 0, length = childNodes.length; i < length; i++)  {       var childNode = childNodes[i];         //Perform additional initialization  }  I tested with 10000 elements and in IE7 I got about 25000ms whilst in FireFox the total time was around 33ms (Core 2 Duo @ 2.33GHz). Quite a difference if you ask me. I thought that there may be some IE specific method/property which could perform better and I dug into MSDN. And a few minutes later I found the children property!!! Apparently the children collection contains only HTML elements (whilst childNodes is full of...
    August 14, 2008
  • Web ASP.NET AJAX

    RadTreeView for ASP.NET Ajax Load On Demand Modes - why so many?

    In my previous blog post I told you how the Web Service load on demand mode of RadTreeView delivers the best performance. A logical question arises - why we have the other load on demand modes (server side postback and callback) if they do not perform on par with the Web Service mode. The answer is not that obvious. The truth is every load on demand mode has its pros and cons. The following table describes visually the load on demand modes according to three criterions - performance, templates support, ease of...
    August 08, 2008
  • Web ASP.NET AJAX

    Performance Tip: Use Web Service Load On Demand with RadTreeView

    A common scenario for a treeview control is to populate it with lots of nodes. Adding a few thousand nodes initially is not a good idea though. Think of all the rendered HTML. Even rendering a few thousand strings (without any extra markup) will result in a few megabytes of HTML. That's where load on demand comes into play. RadTreeView supports three different types of load on demand: web service, server side callback and server side postback. From those the server-side postback mode is least efficient in terms of performance because it postbacks and updates the whole page. Here is how...
    August 06, 2008
  • Desktop WinForms

    RadControls for WinForms gaining more speed

    …Or how you should manage predefined themes in Q2 2008 As mentioned previously, RadControls for WinForms is the only WinForms suite which provides WPF-like effects on the classic Windows Forms platform. This has its challenges, because the Windows Forms platform was not build with such rich visualization in mind. For example, performance suffers if too many elements are animated on the form; the form/application start up time increases with too many visual elements on the form, etc. It is our job to try and find ways to keep these times at a minimum, but keep the same rich functionality and dazzling...
  • Web

    Optimizing the load size of Telerik Silverlight controls

    Following the expansion of our Silverlight suite (more than 15 controls coming out next week) and the feedback we’ve got from the community, we are now in a process of optimizing the size of the assemblies. Instead of including all our controls into one big assembly, we decided to group them into several smaller ones. This will reduce the size of the XAP file when you are not using all the controls in the suite. We came up with the following list of assemblies: Telerik.Windows.UI.dll Telerik.Windows.Controls.Navigation.dll Telerik.Windows.Controls.Input.dll Telerik.Windows.Controls.Web.dll Apart from this list there will be assemblies that hold the themes of the controls - e.g. separate assemblies for the Telerik, Vista and Default themes.   I...