Telerik blogs

Latest

  • Web

    Adding Mouse Wheel support in Silverlight. The easy way.

    One of the best uses of our Routed Event extension is implementing missing system events in Silverlight, such as MouseWheel and RightButtonUp/Down. The API we provide is the same as WPF, so when Silverlight eventually gets support for those events, most probably you will not have to change much. Other good thing is that you do not need to write any JavaScript, or to know what's going on beneath. The bad thing is that you will have to enable the windowless mode of the Silverlight plug-in, which will slightly decrease the performance of your application. To attach a Routed Event handler for the MouseWheel event on a...
  • Web ASP.NET AJAX

    Performance tip: Using sprites with navigational RadControls

    As a strong believer in sprites, I was inspired from a question that came up in a forum thread earlier this week, namely: how to use sprites in a RadTreeView? Well, I think it's rather limiting to write only about the RadTreeView, so this post discusses the technique for all of the navigational RadControls. You can download the sample page and give it at try. Most of the code is quite straightforward - simply setting the CssClass property and a few layout adjustments. Please note, however, that this CSS is tightly bound to the skin that is currently used, so changing skins might not work...
    July 23, 2008
  • Web ASP.NET AJAX

    Browser Inconsistencies with Scrolling and Padding

    The other day I was researching a slight RadGrid header and data cell misalignment when using scrolling with static headers. Finally, it turned out that there is a breaking change in the way Firefox 3 treat scrollable elements with an applied padding style. To be more specific, this browser version does not include the padding zone into the scrollable area, and as a result, the inner area of the element becomes smaller. Safari 2 and 3 behave the same way. Here is a very simple testing scenario:   <div style="width:400px">      <div style="width:100px;padding-right:300px;background:orange;overflow:auto">          <div style="width:500px;height:100px;background:yellow">&nbsp;</div>      </div>  </div>      The above HTML code will be displayed by Firefox 3, Firefox 2, IE7, Opera 9 and Safari...
    July 23, 2008
  • Web ASP.NET AJAX

    Web Resources demystified: Part 3 (Troubleshooting)

    In this post I will show you how to troubleshoot Web Resource related problems and how to deal with them. If you are using an ASP.NET server control with rich client-side behavior it is likely built to utilize web resources. Sometimes your page loads and that rich server side control does not work at all - the tree view does not expand, the grid cannot sort etc. Most of the times this is because the JavaScript files of those controls have failed to load. If your browser is configured to prompt on JavaScript errors you may see the following error messages: "RadTreeView...
  • Web ASP.NET AJAX

    RadRotator binding to XML data

    As you already know, the upcoming RadControls for ASP.NET AJAX Q2 2008 release will add a new control to the suite - the RadRotator. If you are familiar with the RadRotator control from the classic ASP.NET controls suite, you will be glad to know that it is now included in the new Ajax suite as well.   One important change I would like to talk about is how the new rotator works with XML data. The classic rotator control had a property called ContentFile, which allowed the developer to specify a XML file to use as a datasource for the rotator frames....
    July 18, 2008