• .NET Web

    How To: Custom header context menu with RadGridView for Silverlight

    Another popular feature in RadGrid for ASP.NET AJAX is header context menu and I’ve made small demo how to achieve the same in RadGridView for Silverlight:   Similar to the custom filter row you can enable this functionality for your grid with a single property: <telerikGrid:RadGridView x:Name="RadGridView1" telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True" telerik:StyleManager.Theme="Vista" /> Enjoy! [Download]...

  • .NET Web

    How To: RadGridView for Silverlight row context menu in three simple steps

    To enable RadContextMenu for every grid data row you should do: 1) Handle RowLoaded event for the grid and create RadContextMenu: void RadGridView1_RowLoaded(object sender, RowLoadedEventArgs e) { if (!(e.Row is GridViewHeaderRow) && !(e.Row is GridViewNewRow)) { RadContextMenu rowContextMenu = new RadContextMenu(); // create menu StyleManager.SetTheme(rowContextMenu, StyleManager.GetTheme(RadGridView1)); // set menu Theme // create menu items rowContextMenu.Items.Add(new RadMenuItem() { Header = "Show row ID property value" }); ...

  • .NET Web

    How To: Save and load settings with RadGridView for Silverlight

    I’ve made another demo (similar to this one) on how to save and restore various RadGridView settings using IsolatedStorageFile and DataContractSerializer. Again to turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property: <UserControl x:Class="SaveLoadSettingsWithRadGridViewForSilverlight.Page"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"     xmlns:ts="clr-namespace:Telerik.Settings">     <Gridx:Name="LayoutRoot"Background="White">         <telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" />     </Grid> </UserControl> ...

  • .NET 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> ...

  • .NET Web

    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...