or
| PieSeriesDefinition definition = new PieSeriesDefinition(); |
| definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel; |
| radChart1.DefaultSeriesDefinition = definition; |
| DataSeries DS = new DataSeries(); |
| DataPoint DP = new DataPoint(); |
| DS.LegendLabel = "Over25"; |
| DP.YValue = 66; |
| DS.Add(DP); |
| radChart1.DefaultView.ChartArea.DataSeries.Add(DS); |
| DataSeries DS2 = new DataSeries(); |
| DataPoint DP2 = new DataPoint(); |
| DS2.LegendLabel = "Over20"; |
| DP2.YValue = 100; |
| DS2.Add(DP2); |
| radChart1.DefaultView.ChartArea.DataSeries.Add(DS2); |
| DataSeries DS3 = new DataSeries(); |
| DataPoint DP3 = new DataPoint(); |
| DS3.LegendLabel = "Over15"; |
| DP3.YValue = 120; |
| DS3.Add(DP3); |
| radChart1.DefaultView.ChartArea.DataSeries.Add(DS3); |
| DataSeries DS4 = new DataSeries(); |
| DataPoint DP4 = new DataPoint(); |
| DS4.LegendLabel = "Over10"; |
| DP4.YValue = 113; |
| DS4.Add(DP4); |
| radChart1.DefaultView.ChartArea.DataSeries.Add(DS4); |
| DataSeries DS5 = new DataSeries(); |
| DataPoint DP5 = new DataPoint(); |
| DS5.LegendLabel = "Under10"; |
| DP5.YValue = 178; |
| DS5.Add(DP5); |
| radChart1.DefaultView.ChartArea.DataSeries.Add(DS5); |
| Parent.Items.Remove(DirectCast(e.Source, TreeViewItem)) |
| Private Sub trvListEvents_Edited(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs) Handles trvListEvents.Edited |
| If e.OldText <> e.NewText Then |
| ActionMenuRequest(DirectCast(e.Source, RadTreeViewItem)) |
| Else |
| Dim Parent As RadTreeViewItem = Me.CurrentTreeViewItem.Parent |
| Parent.Items.Remove(DirectCast(e.Source, TreeViewItem)) |
| End If |
| End Sub |
Hi,
I'm having a pre purchase test for RadGridView.
I try to develop a small test program with one grid on an xbap application.
Whenever I place a RadGridView control on my page (at design time), my visual studio 2008 start to work verry slow.
Every time I open a new file or trying to view a component properties, well, lets make it short, it happens no metter what i do, the window just gets stuck for 10-30 seconds and the cpu goas up to 100% until the command is performed.
Is there any way to make the conrol work faster at design time?
Thank you.

| <telerik:RadGridView Name="radGridView1" telerik:StyleManager.Theme="Caramel" |
| ShowGroupPanel="False" IsFilteringAllowed="True" |
| Foreground="Black" Margin="10,30,10,20" AutoGenerateColumns="False" |
| RowIndicatorVisibility="Collapsed" ColumnsWidthMode="Fill"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn UniqueName="Title" HeaderText="Title" IsFilterable="False" /> |
| <telerik:GridViewDataColumn UniqueName="Artist" HeaderText="Artist" Width="Auto" /> |
| <telerik:GridViewDataColumn UniqueName="Key" HeaderText="Key" Width="Auto"/> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |
| Dim NewNode As New RadTreeViewItem |
| NewNode.Header = Now |
| Me.CurrentTreeViewItem.IsExpanded = True |
| Me.CurrentTreeViewItem.Items.Add(NewNode) |
| NewNode.IsSelected = True |
| NewNode.BringIntoView() |
| NewNode.BeginEdit() |


| <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="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" |
| Title="Test" Height="350" Width="250" Background="Beige"> |
| <Grid> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="Auto" /> |
| </Grid.RowDefinitions> |
| <Image Grid.Row="0" |
| Name="imageBackground" |
| HorizontalAlignment="Left" |
| VerticalAlignment="Top" |
| Source="/WpfApplication1;component/Images/master.png" |
| Stretch="Uniform" MaxHeight="250" /> |
| <telerik:RadExpander x:Name="radExpander" |
| Grid.Row="1" |
| IsExpanded="True" |
| telerik:StyleManager.Theme="Vista" |
| VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
| Collapsed="radExpander_Collapsed" Expanded="radExpander_Expanded"> |
| <telerik:RadExpander.Header> |
| <TextBlock x:Name="expanderCaption" Foreground="#FFFFFFFF" Text="Test Box" |
| Visibility="Visible" /> |
| </telerik:RadExpander.Header> |
| <telerik:RadExpander.Content> |
| <WrapPanel x:Name="imageContainer" Orientation="Horizontal"> |
| <Image Margin="12" Width="200" Height="64" Stretch="Uniform" Source="/WpfApplication1;component/Images/test.png" /> |
| <Image Margin="12" Width="200" Height="64" Stretch="Uniform" Source="/WpfApplication1;component/Images/test.png" /> |
| </WrapPanel> |
| </telerik:RadExpander.Content> |
| </telerik:RadExpander> |
| </Grid> |
| </Window> |
code:
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Text; |
| using System.Windows; |
| using System.Windows.Controls; |
| using System.Windows.Data; |
| using System.Windows.Documents; |
| using System.Windows.Input; |
| using System.Windows.Media; |
| using System.Windows.Media.Imaging; |
| using System.Windows.Navigation; |
| using System.Windows.Shapes; |
| namespace WpfApplication1 |
| { |
| /// <summary> |
| /// Interaction logic for Window1.xaml |
| /// </summary> |
| public partial class Window1 : Window |
| { |
| public Window1() |
| { |
| InitializeComponent(); |
| } |
| private void radExpander_Collapsed(object sender, RoutedEventArgs e) |
| { |
| if (imageContainer != null) |
| imageContainer.Visibility = Visibility.Collapsed; |
| } |
| private void radExpander_Expanded(object sender, RoutedEventArgs e) |
| { |
| if (imageContainer != null) |
| imageContainer.Visibility = Visibility.Visible; |
| } |
| } |
| } |