Telerik Forums
UI for WPF Forum
1 answer
92 views
How do I turn off the results of the aggregated functions on the group header?
Maya
Telerik team
 answered on 12 Apr 2010
7 answers
198 views
I have a straightforward scenario with a grid where the columns have been given explicit widths in XAML and the ItemsSource is bound to an ObservableCollection of a business object.
The problem is that when you open this view with the grid, you initially see - for a few seconds - that the set of columns are all there ok and have data but are very narrow (about the width of the 'filter funnel' icon) and then they spring out to the expected width. This does not look good!
Any idea what might be causing this or how I can prevent it happening?

Thanks

James S


Milan
Telerik team
 answered on 12 Apr 2010
7 answers
253 views
Hello. I'm developing an application, and we need a carouse, so I started using the RadCarousel. Now, my carousel will only contain a few images, but i want the carousel to take them from an xml file i've written:
<?xml version="1.0" encoding="utf-8" ?>  
<root>  
  <image url="images\announcementsIcon.png"></image>  
  <image url="images\phoneDirectoryIcon.png"></image>  
  <image url="images\gadgetWallIcon.png"></image>  
  <image url="images\wpaNewsIcon.png"></image>  
  <image url="images\newsIcon.png"></image>  
</root> 

I used Blend to import this as an XML data source and declare it on the carousel ItemSource property as a static resource, and then tried to link each image inside the CarouselDataRecordPresenter to the url attributs but didnt succed. I'm not sure what am I doing wrong, I was trying to follow these instructions but they didnt help me. And my second problem, is that,trying to get it going and adding the images to carousel hardcoded, I couldnt get the reflection effect to work. Here's the code. Please help. Thank you

                <telerik:RadCarousel x:Name="naxosCarousel" Height="150" HorizontalAlignment="Center" MaxWidth="774" ScrollViewer.HorizontalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden">  
                    <telerik:RadCarousel.ReflectionSettings>  
                        <telerik:ReflectionSettings Visibility="Visible" Opacity="1" HiddenPercentage="0.2" HeightOffset="6" Angle="10"/>  
                    </telerik:RadCarousel.ReflectionSettings>  
                    <Image Source="images\phoneDirectoryIcon.png"/>  
                    <Image Source="images\newsIcon.png"/>  
                    <Image Source="images\gadgetWallIcon.png"/>  
                    <Image Source="images\wpaNewsIcon.png"/>  
                    <Image Source="images\announcementsIcon.png"/>  
                </telerik:RadCarousel> 

Potecaru Tudor
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
185 views
I have defined ComboBoxes for filtering in the grid header style (see XAML below).
How can I access the ComboBoxes from code?

a)
I do not understand how to loop through the grids columns an access the ComboBox in each columns header.

b)
I the ComboBoxes SelectionChanged event I do not understand how to determine the grid column of the ComboBox raising the event.

       <Style x:Key="GridViewHeaderCellFilterStyle" TargetType="{x:Type telerik:GridViewHeaderCell}">  
                <Setter Property="Template">  
                    <Setter.Value> 
                        <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">  
                            <Grid x:Name="PART_HeaderCellGrid">  
                                  
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="*"/>  
                                    <ColumnDefinition Width="Auto"/>  
                                </Grid.ColumnDefinitions> 
 
                     <!-- Modification Start--> 
                            <Grid.RowDefinitions> 
                                <RowDefinition Height="Auto" /> 
                                <RowDefinition Height="*" /> 
                            </Grid.RowDefinitions> 
                            <Grid Grid.Row="1" Grid.ColumnSpan="2" Height="20">  
                                    <Grid.ColumnDefinitions> 
                                        <ColumnDefinition Width="Auto"/>  
                                        <ColumnDefinition Width="*"/>  
                                    </Grid.ColumnDefinitions> 
                                <telerik:RadComboBox Grid.Column="0" x:Name="cboOperator" SelectionChanged="cboOperator_SelectionChanged"  FontWeight="Normal">  
                                        <telerik:RadComboBoxItem Content="=" IsSelected="True"></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="&lt;"></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="&lt;="></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="&gt;"></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="&gt;="></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="in"></telerik:RadComboBoxItem> 
                                        <telerik:RadComboBoxItem Content="like"></telerik:RadComboBoxItem> 
                                    </telerik:RadComboBox> 
                                <telerik:RadComboBox Grid.Column="1" x:Name="cboValue"  HorizontalAlignment="Stretch" IsEditable="True" IsReadOnly="False" FontWeight="Normal"></telerik:RadComboBox> 
                                 
                            </Grid> 
 
                      <!-- Modification End --> 
 
 
                            <Border x:Name="GridViewHeaderCell" Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">  
                                    <Border Background="{TemplateBinding Background}" BorderBrush="#FF4B4B4B" BorderThickness="1"/>  
                                </Border> 
                                <Border x:Name="GridViewHeaderCell_Over" Opacity="0" Grid.ColumnSpan="2" BorderBrush="#FFFFC92B" BorderThickness="{TemplateBinding BorderThickness}">  
                                    <Border BorderBrush="White" BorderThickness="1">  
                                        <Border.Background> 
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                                <GradientStop Color="#FFFFFBA3" Offset="1"/>  
                                                <GradientStop Color="#FFFFFBDA" Offset="0"/>  
                                                <GradientStop Color="#FFFFD25A" Offset="0.43"/>  
                                                <GradientStop Color="#FFFEEBAE" Offset="0.42"/>  
                                            </LinearGradientBrush> 
                                        </Border.Background> 
                                    </Border> 
                                </Border> 
                                <Border x:Name="GridViewHeaderCell_Selected" Opacity="0" Grid.ColumnSpan="2" BorderThickness="{TemplateBinding BorderThickness}">  
                                    <Border.BorderBrush> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                            <GradientStop Color="#FF616161" Offset="0"/>  
                                            <GradientStop Color="#FF989898" Offset="1"/>  
                                        </LinearGradientBrush> 
                                    </Border.BorderBrush> 
                                    <Border BorderThickness="1">  
                                        <Border.Background> 
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                                <GradientStop Color="#FFFFD74E" Offset="0.996"/>  
                                                <GradientStop Color="#FFFFDCAB" Offset="0.17"/>  
                                                <GradientStop Color="#FFFFB062" Offset="0.57"/>  
                                                <GradientStop Color="#FFFFD18F" Offset="0.56"/>  
                                                <GradientStop Color="#FFFFBA74"/>  
                                            </LinearGradientBrush> 
                                        </Border.Background> 
                                        <Border.BorderBrush> 
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                                <GradientStop Color="#FFB69A78"/>  
                                                <GradientStop Color="#FFFFE17A" Offset="0.126"/>  
                                            </LinearGradientBrush> 
                                        </Border.BorderBrush> 
                                    </Border> 
                                </Border> 
                                <ContentControl x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Foreground="{TemplateBinding Foreground}" Grid.Column="0"/>  
                                <Path x:Name="PART_SortIndicator" Fill="Black" Stretch="Fill" HorizontalAlignment="Center" Margin="0,3,0,0" VerticalAlignment="Top" Width="5" Height="3" Opacity="0" RenderTransformOrigin="0.5,0.5" Grid.ColumnSpan="2" Data="M0,0L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0z">  
                                    <Path.RenderTransform> 
                                        <TransformGroup> 
                                            <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                            <SkewTransform AngleX="0" AngleY="0"/>  
                                            <RotateTransform Angle="0"/>  
                                            <TranslateTransform X="0" Y="0"/>  
                                        </TransformGroup> 
                                    </Path.RenderTransform> 
                                </Path> 
                                <!--<telerik:FilteringDropDown x:Name="PART_DistinctFilterControl" Margin="0,0,8,0" IsTabStop="False" Visibility="{TemplateBinding FilteringUIVisibility}" Grid.Column="1">  
                                    <telerik:StyleManager.Theme> 
                                        <telerik:Office_BlackTheme/> 
                                    </telerik:StyleManager.Theme> 
                                </telerik:FilteringDropDown>--> 
                                <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left" Grid.ColumnSpan="2">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="BorderBrush" Value="Transparent"/>  
                                            <Setter Property="BorderThickness" Value="0"/>  
                                            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>  
                                            <Setter Property="VerticalContentAlignment" Value="Stretch"/>  
                                            <Setter Property="Padding" Value="0"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                                <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Grid.ColumnSpan="2">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="BorderBrush" Value="Transparent"/>  
                                            <Setter Property="BorderThickness" Value="0"/>  
                                            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>  
                                            <Setter Property="VerticalContentAlignment" Value="Stretch"/>  
                                            <Setter Property="Padding" Value="0"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                            </Grid> 
                            <ControlTemplate.Triggers> 
                                <MultiTrigger> 
                                    <MultiTrigger.EnterActions> 
                                        <BeginStoryboard> 
                                            <Storyboard> 
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>  
                                                </DoubleAnimationUsingKeyFrames> 
                                            </Storyboard> 
                                        </BeginStoryboard> 
                                    </MultiTrigger.EnterActions> 
                                    <MultiTrigger.ExitActions> 
                                        <BeginStoryboard> 
                                            <Storyboard> 
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>  
                                                </DoubleAnimationUsingKeyFrames> 
                                            </Storyboard> 
                                        </BeginStoryboard> 
                                    </MultiTrigger.ExitActions> 
                                    <MultiTrigger.Conditions> 
                                        <Condition Property="IsMouseOver" Value="True"/>  
                                        <Condition Property="SortingState" Value="None"/>  
                                    </MultiTrigger.Conditions> 
                                    <Setter Property="Foreground" Value="Black"/>  
                                </MultiTrigger> 
                                <Trigger Property="SortingState" Value="Ascending">  
                                    <Setter Property="Foreground" Value="Black"/>  
                                    <Setter Property="Opacity" TargetName="PART_SortIndicator" Value="1"/>  
                                    <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                        <Setter.Value> 
                                            <ScaleTransform ScaleX="1" ScaleY="1"/>  
                                        </Setter.Value> 
                                    </Setter> 
                                    <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                                </Trigger> 
                                <Trigger Property="SortingState" Value="Descending">  
                                    <Setter Property="Foreground" Value="Black"/>  
                                    <Setter Property="Opacity" TargetName="PART_SortIndicator" Value="1"/>  
                                    <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                        <Setter.Value> 
                                            <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                        </Setter.Value> 
                                    </Setter> 
                                    <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                                </Trigger> 
                                <Trigger Property="SortingState" Value="None">  
                                    <Setter Property="Opacity" TargetName="PART_SortIndicator" Value="0"/>  
                                </Trigger> 
                            </ControlTemplate.Triggers> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
                <Setter Property="Background">  
                    <Setter.Value> 
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                            <GradientStop Color="#FF5B5B5B" Offset="1"/>  
                            <GradientStop Color="#FF868686"/>  
                            <GradientStop Color="#FF4F4F4F" Offset="0.42"/>  
                            <GradientStop Color="#FF0E0E0E" Offset="0.43"/>  
                        </LinearGradientBrush> 
                    </Setter.Value> 
                </Setter> 
                <Setter Property="BorderBrush" Value="#FF848484"/>  
                <Setter Property="BorderThickness" Value="0,0,1,1"/>  
                <Setter Property="VerticalContentAlignment" Value="Center"/>  
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>  
                <Setter Property="Padding" Value="5,0,3,0"/>  
                <Setter Property="Foreground" Value="White"/>  
                <Setter Property="DropMarkPen">  
                    <Setter.Value> 
                        <Pen Brush="White" Thickness="2"/>  
                    </Setter.Value> 
                </Setter> 
                <Setter Property="SnapsToDevicePixels" Value="True"/>  
            </Style> 

Vlad
Telerik team
 answered on 12 Apr 2010
2 answers
87 views

Hello,

I encountered the following error while navigating through a radTreeView Control with LoadOnDemand enabled. The error appears randomly and it's not connected to bounded data model.

We can provide test project solution if you tell us a valid email address.

Thank you very much.

The error is:

Message:

Object reference not set to an instance of an object.   at Telerik.Windows.Controls.RadTreeViewItem.get_NonParentItems()
   at Telerik.Windows.Controls.RadTreeViewItem.OnIsExpandedChanged(Boolean oldValue, Boolean newValue)
   at Telerik.Windows.Controls.RadTreeViewItem.OnIsExpandedPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadTreeViewItem.set_IsExpanded(Boolean value)
   at Telerik.Windows.Controls.RadTreeViewItem.ExpanderElement_Click(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Primitives.ToggleButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Rares Vasilescu
Top achievements
Rank 1
 answered on 12 Apr 2010
3 answers
222 views
I am working on a application for my current employer, Sikorsky Corp., that is using a collection of 5,338  datapoints that I am binding to a radchart to generate a line serie. The problem is that the Telerik radchart line graph is taking between 7sec - 30sec to render on a machine having a Intel Core 2 Duo CPU executeing at 3.16 GHz, and having 3GB of RAM with Windows XP operating system.  How can I get radchart to perform much better then it is now current performing?  Was radchart line graph capability implemented using straight vanilla  WPF DataTemplate and/or overriding the OnRender method?  If it was implemented using straight vanilla WPF and/or overriding the OnRender method then this would explain the poor performance when dealing with large number of DataPoints.  What will need to be done is to implement the radchart line graph capability using DrawingVisual.  Please see link below on how to use DrawingVisual to implement charts that can deal with very large number of datapoints.

This is the property that I am binding to:

public

 

ObservableCollection<DataPoint> DataPoints

 

{

 

        get

 

        {

 

                return dataPoints;

 

        }

 

        set

 

        {

                dataPoints =

value;

 

                OnPropertyChanged(

"DataPoints");

 

        }

}


I set the ItemsSource property of my telerik chart to this DataPoints property as so:

<

 

telerik:RadChart x:Name="linePlot"  ItemsSource="{Binding Path=DataPoints}" >

 

 

 

        <telerik:RadChart.DefaultView>

 

 

 

            <telerik:ChartDefaultView>

 

 

 

                    <telerik:ChartDefaultView.ChartTitle>

 

 

 

                            <telerik:ChartTitle />

 

 

 

                    </telerik:ChartDefaultView.ChartTitle>

 

 

 

                    <telerik:ChartDefaultView.ChartLegend>

 

 

 

                            <telerik:ChartLegend Width="0" />

 

 

 

                    </telerik:ChartDefaultView.ChartLegend>

 

 

 

                    <telerik:ChartDefaultView.ChartArea>

 

 

 

                            <telerik:ChartArea>

 

 

 

                                    <telerik:ChartArea.AxisY>

 

 

 

                                                <telerik:AxisY MajorGridLinesVisibility="Visible" MinorGridLinesVisibility="Visible" />

 

 

 

                                    </telerik:ChartArea.AxisY>

 

 

 

                                    <telerik:ChartArea.AxisX>

 

 

 

                                                <telerik:AxisX />

 

 

 

                                    </telerik:ChartArea.AxisX>

 

 

 

                            </telerik:ChartArea>

 

 

 

                   </telerik:ChartDefaultView.ChartArea>

 

 

 

            </telerik:ChartDefaultView>

 

 

 

        </telerik:RadChart.DefaultView>

 

 

 

        <telerik:RadChart.SeriesMappings>

 

 

 

                <telerik:SeriesMapping>

 

 

 

                        <telerik:SeriesMapping.SeriesDefinition>

 

 

 

                                  <telerik:LineSeriesDefinition />

 

 

 

                        </telerik:SeriesMapping.SeriesDefinition >

 

 

 

                        <telerik:SeriesMapping.ItemMappings>

 

 

 

                                <telerik:ItemMapping DataPointMember="YValue" 
                                                                  FieldName
="YPlotPoint" />

 

 

 

                                <telerik:ItemMapping DataPointMember="XValue" 
                                                                  FieldName
="XPlotPoint"  />

 

 

 

                        </telerik:SeriesMapping.ItemMappings>

 

 

 

                </telerik:SeriesMapping>

 

 

 

        </telerik:RadChart.SeriesMappings>

 

 

 

</telerik:RadChart>

 


Link to DrawingVisual:

http://msdn.microsoft.com/en-us/magazine/dd483292.aspx


Giuseppe
Telerik team
 answered on 12 Apr 2010
3 answers
76 views
Hello.

Like the title says, I need a notification when the drag and drop operation is finished and the dropped item has been moved to it's correct position, this is because I need the new position of the item.

I'm not using the native D&D in the RadTreeView, but I'm using the RadDragAndDropManager to handle my D&D. Also as I was told here that in order to handle the D&D on my own I have to set the e.Handled to true in the PreviewDragEnded event.

So basically I just need an event that happens after:

1) The drop has finished
2) The tree view has been rearranged to update the new position of the dropped item

At that point, I should be able to find the dropped item and call this to get its new coordinates (reference):

GeneralTransform generalTransform = droppedItem.TransformToVisual( parentElement );
Point childToParentCoordinates = generalTransform.Transform( new Point( 0, 0 ) );

Let me know if this is possible. Thanks!

Tina Stancheva
Telerik team
 answered on 12 Apr 2010
4 answers
184 views
Hello,

I am using RadGridView on my Window. On adding and Removing rows on RadGridView it start Flickering and not allow to work on it.
My grid have columns like:
1. RadDatePicker 
2.CheckBox
3.GridViewComboBoxColumn.
4. TextBox

Please help me how to stop this  Flickering  of Grid.
ritesh goyal
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
119 views
Hi Telerik,

I was implementing the demonstration of loading/saving the GridView state from the demo application.
All worked well, the state was saved/loaded, except the GroupBy toolbar was not filled from the last state.

By implementing this.grid.UpdateLayout(); inside the Loadstate function solved my problem.

Is this the correct way?, Or should the example have worked 'out of the box'?

With kind regards,
Rob
Vlad
Telerik team
 answered on 12 Apr 2010
0 answers
100 views
Hello,

I am using RadGridView on my Window. On adding and Removing rows on RadGridView it start Flickering and not allow to work on it.
My grid have columns like:
1. RadDatePicker 
2.CheckBox
3.GridViewComboBoxColumn.
4. TextBox

Please help me how to stop this  Flickering  of Grid.

Sorry Posted in wrong column.....



ritesh goyal
Top achievements
Rank 1
 asked on 12 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?