Telerik Forums
UI for WPF Forum
1 answer
98 views
Hi,

I'm comparing the original Office 2007 style with the style applied to Toolbar and there is a minor difference. The expander for toolbar is gray in Telerik controls but blue in Outlook 2007. Please take a look to attached image as a reference.

Thank you,
Ruben
Dimitrina
Telerik team
 answered on 02 Sep 2010
1 answer
120 views
I'm building a custom control to select color, but when I put a RadColorSelector, the NoTextColor property isn't updated at all.

I've tried either putting directly in the template of my control

<Setter Property="Template">
    <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:RColorChooser}">
            <...>
                <telerik:RadColorSelector x:Name="colorSelector" NoColorText="Desired Text"
                                                      SelectedColor="{Binding SelectedColor, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
            <...>
        </ControlTemplate>
    </Setter.Value>
</Setter>

or using a general property that is bound to the NoColorText which is either changed directly in the default values of my control or set manually in the UserControl in which I'm using the custom Control

<Setter Property="Template">
    <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:RColorChooser}">
            <...>
                <telerik:RadColorSelector x:Name="colorSelector" NoColorText="{TemplateBinding NoColorText}"
                                                      SelectedColor="{Binding SelectedColor, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
            <...>
        </ControlTemplate>
    </Setter.Value>
</Setter>
<Setter Property="NoColorText" Value="Desired Text" />

In both cases the text remains "Automatic" while using changing the property when putting the control outside of a custom control template (as in using the RadColorSelector directly in a UserControl) will change the text correctly.
Tina Stancheva
Telerik team
 answered on 02 Sep 2010
6 answers
349 views
Hi

My RadGridView is bound to some items that implement INotifyPropertyChanged. The grid's ShowColumnFooters property is True and there is a SumFunction in one of the columns. When the grid is initially loaded, the data is displayed fine and the total is correct.
However there is some feature that enables the user to update the values that are displayed in the column that has the total in the footer. This feature updates only one item's value at a time but it's not using editing within the grid but some other editing. When the value is updated, the detail row is changed accordingly but the total in the footer is not.

I have found out that when editing the value directly in the grid it's working as well as when adding or removing rows (i.e. total in the footer is updated).

So how can I programmatically instruct the grid to update its totals/footers if this is not done automatically?

Thanks and regards,

Christian

Maya
Telerik team
 answered on 02 Sep 2010
3 answers
105 views
Hi.

I´m using a gridview to display a number of textboxes. I want to use TAB to jump between the textboxes. If I use tab the cells will be selected but not the textbox. How can i set focus on the textbox when a cell in the grid gets focus?

Best regards
Øystein

Vlad
Telerik team
 answered on 02 Sep 2010
1 answer
81 views
I notice in my RadGridViews that I can bind successfully to entity objects.  However, the grids are incomplete (columns missing) until I click on a column heading.  Then, the rest of the columns suddenly appear (or in some cases the slider bar shortens by half!).  My application displays only one row, so there is no need for the end user to be clicking headings.  I have broken up my data into four different tables shown in four different grids in order to simplify for the user.  My rows have 10, 22, 17, and 9 columns respectively, and I am using automatic column display. 
Is there something I'm missing which causes the grid not to display all columns right away?   This same issue also happens with another project of mine.

Second question:  What is the best way to display a single row of many columns without sliding or panning?  Is there a way to "fold" the row?
Or do I have to handle it with two grids and column by column definitions?  What are the best practices for this? 
Many thanks,
RIchard


Nedyalko Nikolov
Telerik team
 answered on 02 Sep 2010
1 answer
104 views
In one of the older versions of the Date(Time)Picker the user could just write a date with only numbers,
like this: "30082010".

Then, when leaving the control, the text/date automaticly changed to 30.08.2010 (as we write dates in Norway).
Is this feature still here? How can we "get it back"?   8-)
George
Telerik team
 answered on 02 Sep 2010
1 answer
146 views
Hey,
   I try to create Horizontal Bar chart with a vertical line in the middle (shows critical level).
   The only solution I found is to create multiple series. However I can't make it work.
   I am getting an exception for multiple series of HorizonalBarSeries and LineSeries.
   What am I doing wrong?
   Here is the xaml + exception:

<

 

telerik:RadChart>

 

 

 

<telerik:RadChart.DefaultView>

 

 

 

<telerik:ChartDefaultView ChartLegendPosition="Bottom">

 

 

 

<telerik:ChartDefaultView.ChartTitle>

 

 

 

<telerik:ChartTitle Visibility="Collapsed" OuterBorderThickness="0">

 

 

 

</telerik:ChartTitle>

 

 

 

</telerik:ChartDefaultView.ChartTitle>

 

 

 

<telerik:ChartDefaultView.ChartArea>

 

 

 

<telerik:ChartArea>

 

 

 

<telerik:ChartArea.DataSeries>

 

 

 

<telerik:DataSeries>

 

 

 

<telerik:DataSeries.Definition>

 

 

 

<telerik:HorizontalBarSeriesDefinition ItemLabelFormat="#Y{#,###}"></telerik:HorizontalBarSeriesDefinition>

 

 

 

</telerik:DataSeries.Definition>

 

 

 

</telerik:DataSeries>

 

 

 

<telerik:DataSeries>

 

 

 

<telerik:DataSeries.Definition>

 

 

 

<telerik:LineSeriesDefinition ShowItemLabels="False"></telerik:LineSeriesDefinition>

 

 

 

</telerik:DataSeries.Definition>

 

 

 

</telerik:DataSeries>

 

 

 

</telerik:ChartArea.DataSeries>

 

 

 

</telerik:ChartArea>

 

 

 

</telerik:ChartDefaultView.ChartArea>

 

 

 

</telerik:ChartDefaultView>

 

 

 

</telerik:RadChart.DefaultView>

 

 

 

</telerik:RadChart>

exception:
Cannot add content of type 'Telerik.Windows.Controls.Charting.DataSeries' to an object of type 'Telerik.Windows.Controls.Charting.DataSeriesCollection'.  Error at object 'Telerik.Windows.Controls.Charting.DataSeries' in markup file 'component/controls/dashboard/ciddashboardcontrol.xaml'.

 

Yavor
Telerik team
 answered on 02 Sep 2010
1 answer
43 views
Hi,
when i try to group the gridview while I'am drag a columnheader to the group panel, I get an error when the Datatyp of the column is a number and one of the data has none value.

e.g.
Col 1(string), Col 2(Int16)
Data1: "Hallo", 0
Data2: "", 44
Data3: "Hallo", 55
Data4: "Hallo",

Data4 has no value in Col2 so I get the Exception.
  
"bei System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   bei System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   bei System.Delegate.DynamicInvokeImpl(Object[] args)
   bei System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.RaiseGroupingEvent(IColumnInfo draggedCell, Int32 index, GroupingEventAction groupingEventAction)
   bei Telerik.Windows.Controls.GridView.GridViewGroupPanel.OnDropInfo(Object sender, DragDropEventArgs e)
   bei Telerik.Windows.Controls.DragDrop.DragDropEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   bei Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.RaiseDropInfo()
   bei Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnDrop()
   bei Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseLeftButtonUpInternal()
   bei Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseLeftButtonUp(Object sender, EventArgs e)
   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   bei System.Windows.Input.InputManager.ProcessStagingArea()
   bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.Run()
   bei System.Windows.Application.RunDispatcher(Object ignore)
   bei System.Windows.Application.RunInternal(Window window)
   bei System.Windows.Application.Run(Window window)
   bei System.Windows.Application.Run()
   bei * in *:Zeile 0.
   bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()

Chris
Yavor Georgiev
Telerik team
 answered on 02 Sep 2010
1 answer
141 views
Hi there

I've create a dashboard type screen, which uses restyled radio buttons to change the specific information displayed.

I have three grids, each containg radcharts and gauges, the visibility of each is bound to the IsChecked property of one of the restyled radio buttons using Element Name and a boolean to visibility converter.

This all works fine, with the appropriate charts etc being displayed when a particular radio button is selected. However when I place this inside a TileViewItem within the LargeContent section of the RadFluidContentControl. The functionality no longer works and all grids are displayed at once on top of each other and the radio buttons have no effect.

the BooleanTo Visibility Converter is held in the code behind and referenced in the Window.Resources - I have also tried moving the reference to RadTileViewItem.Resources and even Grid.Resources further down the visual tree towards where it is used, but this makes no difference, as I'm pretty sure it's not even getting as far as attempting to use it:

When I run through VS2010 (I'm generally a Blend person!) I do get Binding errors, which seems to suggest that the radio buttons cannot be 'found':

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=DistributorButton'. BindingExpression:Path=IsChecked; DataItem=null; target element is 'Grid' (Name='DistributorGrid'); target property is 'Visibility' (type 'Visibility')

Any help would be greatly appreciated as I really do not understand how it can work perfectly outside the tileview control and not at all when the exact same xaml is placed within the control?

RadTileItem Xaml Below -
<telerikNavigation:RadTileViewItem Header="Summary" telerik:Theming.Theme="Windows7">
                <telerik:RadFluidContentControl ContentChangeMode="Manual" >
                          
                    <telerik:RadFluidContentControl.SmallContent>
                        <Grid Width="150" Height="Auto">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <Image Source="Images/Prog_48.png" Height="24" Width="24"/>
                                  
                            </StackPanel>
                        </Grid>
                    </telerik:RadFluidContentControl.SmallContent>
                          
                    <telerik:RadFluidContentControl.LargeContent>
                        <Grid Background="{StaticResource Midnight2}">
                              
                            <Grid Width="Auto" Height="Auto" Background="{DynamicResource OverlayPanelLB}">
                                      
                                    <Border Margin="5" BorderBrush="{StaticResource PanelBorderLB}" Background="{DynamicResource MidnightBar1}" BorderThickness="2" CornerRadius="3"/>
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="35"/>
                                                <RowDefinition Height="*"/>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="*"/>
                                                  
                                            </Grid.ColumnDefinitions>
                                              
                                            <Border Grid.Row="0" Margin="7,7,7,0" Grid.ColumnSpan="2" CornerRadius="2,2,0,0" Background="{DynamicResource GeneralToolBarBrush}" BorderThickness="0,0,0,0.4" BorderBrush="White" />
                                              
                                                <StackPanel Grid.Row="0" Grid.Column="0"  Orientation="Horizontal" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Center">
                                                    <Label Foreground="{DynamicResource GeneralLabelBrushBrush}" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,4,4,0" >View By</Label>
                                                    <RadioButton x:Name="DistributorButton"  IsChecked="True"  Style="{StaticResource RadioToggle}" Content="Distributor" Width="80" Height="22" VerticalAlignment="Center" Margin="0,5,5,0" Background="{x:Null}" BorderBrush="{DynamicResource OverlayPanelLB}" BorderThickness="1" Foreground="{DynamicResource GeneralLabelBrushBrush}"/>
                                                    <RadioButton x:Name="GenreButton" Style="{StaticResource RadioToggle}" Content="Genre" Width="80" Height="22" VerticalAlignment="Center" Margin="0,5,5,0" Background="{x:Null}" BorderBrush="{DynamicResource OverlayPanelLB}" BorderThickness="1" Foreground="{DynamicResource GeneralLabelBrushBrush}"/>
                                                    <RadioButton x:Name="CertificateButton" Style="{StaticResource RadioToggle}" Content="Certification" Width="80" Height="22" VerticalAlignment="Center" Margin="0,5,0,0" HorizontalAlignment="Center" Background="{x:Null}" BorderBrush="{DynamicResource OverlayPanelLB}" BorderThickness="1" Foreground="{DynamicResource GeneralLabelBrushBrush}"/>   
                                                </StackPanel>
                                              
                                                <StackPanel Grid.Row="0" Grid.Column="1"  Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,25,0" VerticalAlignment="Center">
                                                    <Label Foreground="{DynamicResource GeneralLabelBrushBrush}" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,4,4,0" >Date Period</Label>
                                                    <telerikInput:RadDatePicker Width="120" Height="20" telerik:Theming.Theme="Windows7" VerticalAlignment="Center" Margin="0,5,0,0" />
                                                </StackPanel>
  
                                            <Grid x:Name="DistributorGrid" Visibility="{Binding IsChecked, ElementName=DistributorButton, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="1" Grid.ColumnSpan="2">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="3*"/>
                                                    <ColumnDefinition Width="2*"/>
                                                    <ColumnDefinition Width="4*"/>
                                                      
                                                </Grid.ColumnDefinitions>
                                              
                                            <telerikChart:RadChart Grid.Column="0" x:Name="radChart" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisElementBrush="White" AxisForeground="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:DoughnutSeriesDefinition></telerikCharting:DoughnutSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                              
                                              
                                              
                                            <telerikGrid:RadGridView Grid.Column="1" Margin="10" ShowGroupPanel="False" telerik:Theming.Theme="Windows7" />
                                              
                                              
                                            <telerikChart:RadChart Grid.Column="2" x:Name="radChart1" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisForeground="White" AxisElementBrush="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:HorizontalStackedBarSeriesDefinition></telerikCharting:HorizontalStackedBarSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                              
                                            </Grid>
                                          
                                      
                                      
                                      
                                        <Grid x:Name="GenreGrid" Visibility="{Binding IsChecked, ElementName=GenreButton, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="1" Grid.ColumnSpan="2">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="3*"/>
                                                    <ColumnDefinition Width="4*"/>
                                                    <ColumnDefinition Width="2*"/>
                                                      
                                                </Grid.ColumnDefinitions>
                                              
                                            <telerikChart:RadChart Grid.Column="0" x:Name="radChart2" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisElementBrush="White" AxisForeground="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:DoughnutSeriesDefinition></telerikCharting:DoughnutSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                              
                                            <telerikChart:RadChart Grid.Column="1" x:Name="radChart3" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisForeground="White" AxisElementBrush="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:LineSeriesDefinition></telerikCharting:LineSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                                  
                                                <telerik1:RadGauge Name="radGauge" Grid.Column="2" MinWidth="140" MaxWidth="160" Margin="5,0,15,0">
                                                <telerik1:RadialGauge Background="{StaticResource RadialBG}">
                                                <telerik1:RadialScale Min="0" Max="1000">
                                                  <telerik1:IndicatorList>
                                                    <telerik1:Needle Value="400"/>
                                                    <telerik1:RadialBar Name="radialBar"
                                                          StartWidth="0.01"
                                                          EndWidth="0.1"
                                                          Location="OverCenter"
                                                          Offset="0"
                                                          EmptyFill="Transparent"
                                                          Background="{StaticResource GreenBar}"
                                                          BorderBrush="Transparent"
                                                          StrokeThickness="0"
                                                          Value="400"/>
                                                          
                                                  </telerik1:IndicatorList>
                                                 </telerik1:RadialScale>
                                                </telerik1:RadialGauge>
                                                </telerik1:RadGauge>
                                                  
                                                  
                                            </Grid>
                                              
                                              
                                            <Grid x:Name="CertificateGrid" Visibility="{Binding IsChecked, ElementName=CertificateButton, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="1" Grid.ColumnSpan="2">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="3*"/>
                                                    <ColumnDefinition Width="4*"/>
                                                    <ColumnDefinition Width="2*"/>
                                                      
                                                </Grid.ColumnDefinitions>
                                              
                                            <telerikChart:RadChart Grid.Column="0" x:Name="radChart4" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisElementBrush="White" AxisForeground="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:DoughnutSeriesDefinition></telerikCharting:DoughnutSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                              
                                            <telerikChart:RadChart Grid.Column="1" x:Name="radChart5" Content="" LegendStyle="{StaticResource LegendStyle1}" Margin="10" VerticalAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="2" AxisForeground="White" AxisElementBrush="White">
                                                    <telerikChart:RadChart.SeriesMappings>
                                                          
                                                        <telerikCharting:SeriesMapping LegendLabel="Product Sales">
                                                              
                                                            <telerikCharting:SeriesMapping.SeriesDefinition>
                                                                <telerikCharting:AreaSeriesDefinition></telerikCharting:AreaSeriesDefinition>
                                                            </telerikCharting:SeriesMapping.SeriesDefinition>
                                                              
                                                            <telerikCharting:SeriesMapping.ItemMappings>
                                                                <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="MonthName"></telerikCharting:ItemMapping>
                                                                <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Quantity"></telerikCharting:ItemMapping>
                                                            </telerikCharting:SeriesMapping.ItemMappings>
                                                              
                                                        </telerikCharting:SeriesMapping>
                                                    </telerikChart:RadChart.SeriesMappings>
                                                </telerikChart:RadChart>
                                                  
                                                <telerik1:RadGauge Name="radGauge1" Grid.Column="2" Margin="25,25,25,25" HorizontalAlignment="Center" MaxWidth="120" MinWidth="100">
                                                <telerik1:LinearGauge Background="{StaticResource RadialBG}">
                                                <telerik1:LinearScale Min="0" Max="1000">
                                                  <telerik1:IndicatorList>
                                                    <telerik1:Marker RelativeHeight="0.05" Value="400"/>
                                                    <telerik1:LinearBar Name="linearBar"
                                                          StartWidth="0.07"
                                                          EndWidth="0.07"
                                                          Location="OverCenter"
                                                          Offset="0"
                                                          EmptyFill="Transparent"
                                                          BorderBrush="Transparent"
                                                          StrokeThickness="0"
                                                          Value="400"
                                                          Background="{DynamicResource GreenBar}">
                                                          
                                                    </telerik1:LinearBar>
                                                          
                                                  </telerik1:IndicatorList>
                                                 </telerik1:LinearScale>
                                                </telerik1:LinearGauge>
                                                </telerik1:RadGauge>
                                                  
                                                  
                                            </Grid>
                                              
                                              
                                              
                                        </Grid>
                                      
                                      
                                    </Grid>
                                </Grid>
                    </telerik:RadFluidContentControl.LargeContent>
                </telerik:RadFluidContentControl>
            </telerikNavigation:RadTileViewItem>
Kiril Stanoev
Telerik team
 answered on 02 Sep 2010
4 answers
274 views

Hi,

Using Q2 2010 SP1 on XP Pro with C# .NET 3.5

I'm noticing that when I copy values from a comboBox where the comboBox is setup like

GridViewComboBoxColumn combo= ((GridViewComboBoxColumn)gridView.Columns["myColumn"]);
combo.ItemsSource = GetGrouping(); //returns List<Group> which just contains GroupName, and GroupId referenced below
combo.DataMemberBinding = new Binding("GroupId");
combo.DisplayMemberPath = "GroupName";
combo.SelectedValueMemberPath = "GroupId";

if I copy that onto the clipboard I get the display value.. but whenever I paste.. the value doesn't paste properly onto the GridViewComboBox because it's expecting the Id value from the paste.  I verified this by changing the paste value inside the

PastingCellClipboardContent event.  When I changed the "Name" value to  a corresponding "Id" value the paste was "visually succesful" meaning the display value on the datagrid changed to match the value I copied from the originiating ComboBox cell. 


There doesn't seem to be any other option when copying (and I don't really think there should be.. because that would break pasting to external applications)... but I'm wondering if I've just setup the column improperly or is this just the way this control works?

Thanks for any assistance.

Yavor Georgiev
Telerik team
 answered on 02 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?