Telerik blogs
  • Web

    Silverlight TreeView Load on Demand

    Today I created a really simple application that demonstrates "best practice" for using RadTreeView with load on demand and ADO.NET Data Service. The application uses the Northwind database, that can be downloaded here. The tricky part is that in order to create almost codeless application we need to modify the automatically generated code of the service reference. To do that you will need to show all files in the Silverlight application (click the Show All Files in the Solution Explorer title bar) and then open Reference.cs: In this file replace all occurrences of "System.Collections.ObjectModel.Collection" with "System.Collections.ObjectModel.ObservableCollection". This probably will be changed in...
    October 08, 2008
  • 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...
  • Release

    Telerik Trainer is LIVE!

    As you most probably know (see Falafel Releases Telerik Trainer At TechEd 2008, Telerik Trainer Sneak Preview) we have been working on a new training tool for Telerik products. Telerik Trainer is a state of the art learning tool which we have produced together with our great partners at Falafel Software.   You can now get your hands on the Telerik Trainer at: http://www.telerik.com/support/teleriktrainer.aspx (signing in required). We are initially releasing a total of 27 training sessions (for RadControls ASP.NET AJAX and Telerik Reporting) and we plan to regularly add more tutorials for all Telerik Products. Telerik Trainer is an important milestone in our...
    June 26, 2008
  • Web

    Increasing the compression ratio of the XAP files

    Today I was hacking around with a Silverlight application and decided to check if it is possible to recompress its XAP file in order to save some bytes. As you might already know, the XAP files are just renamed ZIP files and you can open and view their contents with almost any archiver. I created a simple batch file that extracts an archive to a temp folder, deletes it and then compresses the extracted files into a new archive with the same name as the original (I am using the open source archiver 7-Zip, which was installed in its default location): @if...