Telerik blogs
  • Desktop WPF

    Installing and Using the RadRibbonForm template

    If you are planning to use the RadRibbonBar and want to get started quickly, then you might consider using the RadRibbonForm template in VIsual Studio.  While you can use a standard form the RadRibbonForm allows you to use the RadRibbonBar and have it extend into the Title bar, just like Microsoft Office.  You will first need to install the template so it is available to you in Visual Studio.  To get started, navigate to the C:\Program Files\Telerik\RadControls for WinForms [version]\Templates.  If you are using CSharp open the CSharp directory, there are Visual Basic versions as well, in appropriately named folders,...
    April 07, 2009
  • Web

    How To: Custom filter row with RadGridView for Silverlight

    Since our RadGrid for ASP.NET AJAX filter row is very popular, I’ve made small demo how to achieve the same in RadGridView for Silverlight:   To turn on this for your grid you can simply set GridViewFilterRow.IsEnabled attached property: <UserControl x:Class="CustomFilterRow.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerikGridViewFilter="clr-namespace:Telerik.Windows.Controls.GridView.Filter" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"> <Grid x:Name="LayoutRoot" Background="White"> <telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False" telerikGridViewFilter:GridViewFilterRow.IsEnabled="True"> <telerik:RadGridView.Columns> ...
  • Desktop WinForms

    Changing the Backcolor for the RadMenu for WinForms

    Recently a question regarding how to change the BackColor of the RadMenu for WinForms.  I thought it might be easier to outline this process with screenshots so I put together a quick post to answer the question. After creating a new WinForms application project, I added a RadMenu.  The screenshot below shows that the default color of the menu is blue. The quickest way to accomplish this task is to click on the SmartTag in the DesignView.  Then select the Edit UI Element menu option. This will open a new window which is called the Element hierarchy editor. Within the Element hierarchy editor, select the...
    April 04, 2009
  • Web ASP.NET AJAX

    XML Syntax Rules

    All XML Elements Must Have a Closing Tag In HTML, you will often see elements that don't have a closing tag:  <p>This is a paragraph  <p>This is another paragraph    In XML, it is illegal to omit the closing tag. All elements must have a closing tag: <p>This is a paragraph</p>  <p>This is another paragraph</p>        Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag. XML Tags are Case Sensitive XML elements are defined using XML tags. XML tags are case sensitive. With XML, the tag <Letter> is different from the...
    April 03, 2009
  • Desktop WPF

    How To: Save and load settings with RadGridView for WPF

    I’ve made small demo on how to save and restore various RadGridView settings using ApplicationSettingsBase. To turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfApplication1" xmlns:ts="clr-namespace:Telerik.Settings" Title="Window1"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="get_Customers"> </ObjectDataProvider> </Grid.Resources> <telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" ItemsSource="{Binding Source={StaticResource customers}}"/> </Grid></Window> Saved settings...
  • Desktop WPF

    Installing and Using the RadRibbonForm template

    If you are planning to use the RadRibbonBar and want to get started quickly, then you might consider using the RadRibbonForm template in VIsual Studio.  While you can use a standard form the RadRibbonForm allows you to use the RadRibbonBar and have it extend into the Title bar, just like Microsoft Office.  You will first need to install the template so it is available to you in Visual Studio.  To get started, navigate to the C:\Program Files\Telerik\RadControls for WinForms [version]\Templates.  If you are using CSharp open the CSharp directory, there are Visual Basic versions as well, in appropriately named folders,...
    April 07, 2009
  • Web

    How To: Custom filter row with RadGridView for Silverlight

    Since our RadGrid for ASP.NET AJAX filter row is very popular, I’ve made small demo how to achieve the same in RadGridView for Silverlight:   To turn on this for your grid you can simply set GridViewFilterRow.IsEnabled attached property: <UserControl x:Class="CustomFilterRow.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerikGridViewFilter="clr-namespace:Telerik.Windows.Controls.GridView.Filter" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"> <Grid x:Name="LayoutRoot" Background="White"> <telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False" telerikGridViewFilter:GridViewFilterRow.IsEnabled="True"> <telerik:RadGridView.Columns> ...
  • Desktop WinForms

    Changing the Backcolor for the RadMenu for WinForms

    Recently a question regarding how to change the BackColor of the RadMenu for WinForms.  I thought it might be easier to outline this process with screenshots so I put together a quick post to answer the question. After creating a new WinForms application project, I added a RadMenu.  The screenshot below shows that the default color of the menu is blue. The quickest way to accomplish this task is to click on the SmartTag in the DesignView.  Then select the Edit UI Element menu option. This will open a new window which is called the Element hierarchy editor. Within the Element hierarchy editor, select the...
    April 04, 2009
  • Web ASP.NET AJAX

    XML Syntax Rules

    All XML Elements Must Have a Closing Tag In HTML, you will often see elements that don't have a closing tag:  <p>This is a paragraph  <p>This is another paragraph    In XML, it is illegal to omit the closing tag. All elements must have a closing tag: <p>This is a paragraph</p>  <p>This is another paragraph</p>        Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag. XML Tags are Case Sensitive XML elements are defined using XML tags. XML tags are case sensitive. With XML, the tag <Letter> is different from the...
    April 03, 2009
  • Desktop WPF

    How To: Save and load settings with RadGridView for WPF

    I’ve made small demo on how to save and restore various RadGridView settings using ApplicationSettingsBase. To turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfApplication1" xmlns:ts="clr-namespace:Telerik.Settings" Title="Window1"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="get_Customers"> </ObjectDataProvider> </Grid.Resources> <telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" ItemsSource="{Binding Source={StaticResource customers}}"/> </Grid></Window> Saved settings...