Telerik blogs
  • Web

    How to: Databind Telerik’s ToolBar

    In this post we will go through a scenario for databinding the RadToolBar control. Here is the end result: And the demo project with everything included: ToolBarMVVM.zip How to databind the ToolBar? The ToolBar is an ItemsControl and can be databound to any IEnumerable, but it is preferable to bind it to an observable collection since any changes in it will be reflected by the ToolBar. Since there is no ToolBarItem, because ToolBar may contain variety of other controls, we will use DataTemplateSelector class to help us determine the template for each item inside the ToolBar: public class ToolBarTemplateSelector : DataTemplateSelector     {         public override DataTemplate SelectTemplate(object item, DependencyObject container)         {             if (item...
    September 28, 2010
  • 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...
    September 28, 2010
  • 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...
    September 28, 2010
  • Release

    Telerik RadControls for Silverlight/WPF Q2 2010 Service Pack 2

    Q2 2010 SP2 release focuses on "memory leaks" fixes. We are proud to announce that we managed to address most of the known issues, including the ones in our online demos.  For full details please check the Release Notes (Silverlight | WPF). To download the latest files log into your account and go to the Downloads section: RadControls for Silverlight RadControls for WPF  The updated online demos are available at: Silverlight | WPF demos. Some more details about the solution we implemented to address the known memory leak problems can be found in Vassil Terziev's blog post about  Silverlight 4 memory leaks, Telerik controls and a solution. We will greatly appreciate your feedback...
    September 28, 2010
  • 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"> ...
    September 28, 2010
  • Web

    How to: Databind Telerik’s ToolBar

    In this post we will go through a scenario for databinding the RadToolBar control. Here is the end result: And the demo project with everything included: ToolBarMVVM.zip How to databind the ToolBar? The ToolBar is an ItemsControl and can be databound to any IEnumerable, but it is preferable to bind it to an observable collection since any changes in it will be reflected by the ToolBar. Since there is no ToolBarItem, because ToolBar may contain variety of other controls, we will use DataTemplateSelector class to help us determine the template for each item inside the ToolBar: public class ToolBarTemplateSelector : DataTemplateSelector     {         public override DataTemplate SelectTemplate(object item, DependencyObject container)         {             if (item...
    September 28, 2010
  • 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...
    September 28, 2010
  • 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...
    September 28, 2010
  • Release

    Telerik RadControls for Silverlight/WPF Q2 2010 Service Pack 2

    Q2 2010 SP2 release focuses on "memory leaks" fixes. We are proud to announce that we managed to address most of the known issues, including the ones in our online demos.  For full details please check the Release Notes (Silverlight | WPF). To download the latest files log into your account and go to the Downloads section: RadControls for Silverlight RadControls for WPF  The updated online demos are available at: Silverlight | WPF demos. Some more details about the solution we implemented to address the known memory leak problems can be found in Vassil Terziev's blog post about  Silverlight 4 memory leaks, Telerik controls and a solution. We will greatly appreciate your feedback...
    September 28, 2010
  • 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"> ...
    September 28, 2010