Telerik blogs

Latest

  • 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...
    May 27, 2021 3 min read
  • 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
  • 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...
    May 27, 2021 1 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
  • Release

    SP1 Brings RadRichTextBox to TeamPulse

    The first release of TeamPulse used Microsoft's Rich Text control to enable rich formatting inside the Story, Persona and Acceptance Criteria descriptions. It offered a good variety of basic formatting options, but nothing like what is now offered by upgrading to the RadRichTextBox control. By using the RadRichTextBox, we effectively have a mini word processor built right into TeamPulse allowing you to create even richer descriptions.   Getting Started What? You don't see the Text Tools contextual tab? Click your mouse inside any of the rich text fields in TeamPulse and you'll see the contextual tab appear in the application's ...
    May 27, 2021 4 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
  • Productivity

    Mocking SPContext.Current with JustMock

    Today, I happen to find an interesting post on mocking SharePoint context using TypeMock. Being a JustMocker, i thought rather to follow the footsteps and see if can do the same with JustMock. I am no SharePoint expert. Occasionally, I use a Windows 2003 VM with SharePoint server installed which gives me the required flavor of SharePoint for testing  SP capabilities of JM. Anyway, here is the original post that i am going to recycle using JustMock. http://meronymy.blogspot.com/2010/09/mocking-spcontextcurrent-with-typemock.html   The scenario here is pretty simple. There is a method that returns an URL from the current SPContext which i am going to mock in order...
    May 27, 2021 1 min read
  • Productivity

    Building a Data Warehouse Part III: Location of your data warehouse

    [repost from Stephen Forte's Blog]   See also: Part I: When to build your data warehouse Part II: Building a new schema In Part I we looked at the advantages of building a data warehouse independent of cubes/a BI system and in Part II we looked at how to architect a data warehouse’s table schema. Today we are going to look at where to put your data warehouse tables. Let’s look at the location of your data warehouse. Usually as your system matures, it follows this pattern: Segmenting your data warehouse tables into their own isolated schema inside of the OLTP database Moving the data warehouse...
    May 27, 2021 3 min read
  • Productivity

    Changing the Ports TeamPulse Uses

    By default TeamPulse makes use of ports 9897, 9898, and 9899 for access to the User Management, TeamPulse, and Integration sites and services. In some cases those ports may be in use by another application, or otherwise restricted within your environment, making it necessary for a change to these defaults. With TeamPulse SP1 it's a fairly simple task to change the ports via modifications to a couple of configuration files, which we will show below. We do recommend, however, that anyone uncomfortable with editing config files have their system administrator help to make these changes.   Part 1: IIS Configuration...
    May 27, 2021 3 min read