Telerik blogs

Latest

  • Web

    How to: Telerik’s TabControl for Silverlight

    Let’s go through implementing several scenarios for the TabControl with quick, short explanations:    1. How to databind the TabControl?    2. How to enable drag-rearrange of items?    3. How to animate rearranging items?    4. How to add a Close Button to the TabItems using a Command?    5. How to animate content changes?    6. How to add a “New Tab” button when databound?    7. How to animate item add / removes? Here is the end result:    And the demo project with everything included:  tabcontrol-howto-demos.zip And of course the details, in short - How to databind the TabControl? The TabControl is a standard ItemsControl and can be databound to...
    May 27, 2021 9 min read
  • Web

    Some tricks with MEF up the sleeve of RadRichTextBox for Silverlight

    In Q2 we introduced the first official version of RadRichTextBox for Silverlight. In this blog post we want to share with you one of the main principles which we have followed while developing our brand new rich text editor for Silverlight - total extensibility. One of the key features which we have included is the ability to import/export from/to various document formats. For the first release we have already included some of the most widely used formats, such as .html/.docx/.xaml/.txt and in the next releases there are still more to come. As MEF is a wonderful technology, we have built...
    May 27, 2021 3 min read
  • Web

    Hierarchy Load On Demand With RadGridView for Silverlight, MVVM and OData

    Similar to this post, I’ve made small example on how to load on demand RadGridView for Silverlight three level hierarchy using MVVM and OData service:   XAML <telerik:RadGridView ItemsSource="{Binding CustomersCollection}" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> … </telerik:RadGridView.Columns> <telerik:RadGridView.ChildTableDefinitions> <telerik:GridViewTableDefinition /> </telerik:RadGridView.ChildTableDefinitions> <telerik:RadGridView.HierarchyChildTemplate> <DataTemplate> <telerik:RadGridView ItemsSource="{Binding OrdersCollection}" AutoGenerateColumns="False"> ...
    May 27, 2021 2 min read
  • Web

    Silverlight 4 memory leaks, Telerik controls and a solution

    As most of the people doing XAML development already know Silverlight 4 shipped at Mix 10 this year. This official release contained a lot of issues (memory leaks included) and it was a reasonable decision for Microsoft to postpone their GDR (general distribution release – the one that comes with Windows Update) version. A few weeks ago, Microsoft finally shipped the GDR. One of the things all developers hoped for was a resolution to the known memory leaks. The GDR did fix a lot of memory leaks, however, it did not address all of them and there are still some...
    May 27, 2021 4 min read
  • Web

    Getting Started with LightSwitch and OpenAccess &ndash; Part 3

    In my last blog we learned how to create an OpenAccess Domain Service that can be consumed by LightSwitch.  In this post we will continue down this path, and get the service loaded as a data source in a LightSwitch application. Adding the Service Our first task today is to add a LightSwitch Project to our solution. Do this through the standard “Add New Project” dialog.  You should see “LightSwitch” as one of the installed templates in the tree view on the left.  Select C#/VB, give the project a name, and click Ok.   Our solution explorer should now look like this:   Right click on “Data...
    May 27, 2021 3 min read