Telerik blogs

Latest

  • Desktop WPF

    WPF: The Static Nature of Dependency Properties

    With dependency properties being so heavily used across the WPF platform, there is a good chance that sooner or later you will get bitten by this issue my colleague Hristo Deshev and I were debugging not long ago. Some heads-up can't really hurt anybody so here it is;). We will declare a simple class Foo with a single collection dependency property (note that this is a reference type). We will also supply our brand new property with a default value through the convenient DependecyProperty.Register(...) method: Let us put our class to the test by creating two Foo instances and adding a single item...
    July 25, 2008 2 min read
  • Web

    Using an HttpModule to Run a Background Service

    This is a great technique for those of you who need to run a service on your web server, but are using shared hosting and don't have the ability to do so. I first saw this technique at one of Rob Howard's TechEd sessions earlier this year. If you have the need to do some routine processing, typically you would consider writing a Windows service. For example, if you were running a web application which pulls data from multiple other sites and web services you might want to periodically load that data into a database and serve it from there rather...
    July 25, 2008 4 min read
  • Web ASP.NET AJAX

    Telerik RadGrid for ASP.NET AJAX Q2 2008 client-side edit using templates

    I've made three demos on how to use RadGrid templates to build completely client-side edit and update: - server-side GridTemplateColumn - server-side GridTableView ItemTemplate - client-side GridTableView ItemTemplate (ASP.NET AJAX 4.0...
    July 24, 2008 1 min read
  • Web

    Skin Exchange Program

    I am enthusiastic to announce the launch of the Telerik Skin Exchange Program – http://www.telerik.com/skins! We have created a meeting place for community members to exchange home-grown skins for the Telerik ASP.NET AJAX components. We know a lot of you have come up with amazing designs for our components and wanted to enable a platform to show these off and help the community. Seeing the tremendous support you guys give to each other every day on our forums and code library, I am confident you will take up on the initiative so we can build up a useful new resource...
    July 24, 2008 1 min read
  • Web

    Using ValueConverter to edit Slider's TickTemplate

    RadSlider for Silverlight has a neat functionality that allows you to display tick marks along the track. But what if you are not pleased with the current design of the ticks? Of course you can completely change the look of a tick mark. Let’s say that instead of bluish rectangles, you want your ticks to be ellipses, or triangles maybe. This is easily achieved by setting the TickTemplate property. <telerik:RadSlider TickPlacement="BottomRight" TickFrequency="1" Maximum="10">       <telerik:RadSlider.TickTemplate>             <DataTemplate>                   <Grid>                        ...
    July 24, 2008 3 min read
  • 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...
    July 24, 2008 2 min read
  • 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 1 min read
  • Release

    RadControls and ASP.NET Ajax 4.0 Preview

    Two days ago Bertrand Le Roy announced the first preview of ASP.NET Ajax 4.0. If you haven't read its roadmap you can check it out here. Lots of cool stuff is coming out - client-side templates, bindings, fluent client-side API (similar to jQuery) and more. Things are a bit hectic here because of the Q2 2008 release. Nevertheless Vlad and I managed to prepare two demo pages demonstrating how to use the client-side templates introduced in the ASP.NET Ajax preview with RadGrid and RadTreeView (yes it was that easy). Both controls are bound to web services and the client-side templates are used to visually customize the...
    July 23, 2008 2 min read
  • 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 1 min read
  • Desktop

    Disabling Full Row Selection in Vista Explorer

    One of the things that irritates me the most in Vista is the enabled by default Full Row Selection in Explorer. To see what I'm talking about open an Explorer window in Details View and try to select files with dragging a rectangle. I googled a bit and found that there is a solution for the problem: Under the key:  [HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]   Create a new REG_DWORD value named FullRowSelect. Leave it's data as 0x0 and you are set.   After some more digging, I found several scripts which will automatically set and unset this key for you: Keith Miller' Windows Stuff   I hope this helps....
    July 22, 2008 1 min read