Telerik Forums
UI for WPF Forum
5 answers
339 views
           
<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding CieDatums, Mode=OneWay}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <telerik:ScatterSeriesDescriptor  ItemsSourcePath="Value" XValuePath="X" YValuePath="Y" CollectionIndex="0">
                <telerik:ScatterSeriesDescriptor.Style>
                    <Style TargetType="telerik:ScatterPointSeries">
                        <Setter Property="RenderOptions" Value="{StaticResource renderOptions}" />
                        <Setter Property="ShowLabels" Value="{Binding IsShowLabel, Mode=OneWay}"/>
                        <Setter Property="PointSize" Value="5,5"/>
                    </Style>
                </telerik:ScatterSeriesDescriptor.Style>
            </telerik:ScatterSeriesDescriptor>
        </telerik:ChartSeriesProvider.SeriesDescriptors>

I have a check box which allow user to choose whether to display the point Label or not. The Binding IsShowLabel is not working. How can i bind the check box's IsChecked to the ShowLabels property?
Joel
Top achievements
Rank 1
Iron
 answered on 30 Mar 2015
2 answers
168 views
Hello,

I see the Timeline control has alternate colors for the intervals, Is it possible to change those colors? I'd like to change them.

Thanks in advance,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 28 Mar 2015
2 answers
206 views
I'm a new chart user, testing out the trial to see if it'll meet our needs.  So hopfully this is a simple question.  I'm in a c# WPF MVVM application.  I have a StackedBar series and a RanageBar series programatically defined and bound via my xaml.  Right now the two different series show up side-by-side in the chart.  I'd like them to basically be overlayed on top of one another.  Is there an easy way yo do this?  Thx

Todd
Top achievements
Rank 1
 answered on 28 Mar 2015
3 answers
75 views
Hi,

Except for the first and the last day off the timeline range, the DayStartTime and DayEndTime properties have no effect in TimelineView.
This issue is known and approved here in your feedback portal, but I could not find any hint of a release date.

Is this feature on your roadmap for 2015?

This feature is vastly asked for among our customers and they often complain about the timeline view being quite useless as it is now.
Kalin
Telerik team
 answered on 27 Mar 2015
3 answers
129 views
Hello,

I just noticed that all cells of a row are updated if any property of the ViewModel changes.
Is there any way to stop this?

In my opinion, there should be a dictionary which indicates which cells have to update if a certain property changes.

Alex
Stefan
Telerik team
 answered on 27 Mar 2015
4 answers
182 views
I have a RadDropDownButton whose DropDownContent is a RadContextMenu.

In the first RadMenuItem ("New Project") inside the RadContextMenu I have various input controls.

I can't get tabbing between these input controls to work at all. With focus on one textbox or combobox, pressing the tab key does nothing. (Before I set IsTabStop="false" on all the RadMenuItems, this would result in tabbing through the RadMenuItems, which I didn't want).

Here's the code:
<telerik:RadDropDownButton Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,25,0" Content="Actions" Width="100">
     <telerik:RadDropDownButton.DropDownContent>
 
         <telerik:RadContextMenu HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top">
             <telerik:RadMenuItem Header="New Project" IsTabStop="False">
                 <Grid Width="300">
                     <Grid.ColumnDefinitions>
                         <ColumnDefinition Width="Auto"/>
                         <ColumnDefinition Width="*"/>
                     </Grid.ColumnDefinitions>
                     <Grid.RowDefinitions>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="*"/>
                     </Grid.RowDefinitions>
 
                     <TextBlock Text="Project No:" Grid.Row="0" Grid.Column="0" Margin="0,2,5,0" />
                     <TextBox Name="newProjectNo"
                              Grid.Row="0" Grid.Column="1"
                              HorizontalAlignment="Left"
                              Width="100"
                              Margin="0,2,0,2"
                              TabIndex="1"
                              IsTabStop="True"
                              VerticalAlignment="Top"></TextBox>
 
                     <TextBlock Text="Applicant:" Grid.Row="1" Grid.Column="0" Margin="0,2,5,0" />
                     <telerik:RadAutoCompleteBox Name="newMuniCode"
                                                 Grid.Row="1" Grid.Column="1"
                                                 HorizontalAlignment="Left"
                                                 Margin="0,2,0,0"
                                                 TabIndex="2"
                                                 IsTabStop="True"
                                                 Width="200"
                                                 VerticalAlignment="Top"/>
 
                     <TextBlock Text="Project Engineer:" Grid.Row="2" Grid.Column="0" Margin="0,2,5,0" />
                     <telerik:RadComboBox x:Name="ProjectEngineerSelection"
                                          Grid.Row="2" Grid.Column="1"
                                          Margin="0,2,0,0"
                                          TabIndex="3"
                                          IsTabStop="True"
                                          ClearSelectionButtonVisibility="Visible"
                                          ClearSelectionButtonContent="Show all"
                                          DisplayMemberPath="DisplayName"
                                          ItemsSource="{Binding ProjectEngineers}"
                                          SelectedItem="{Binding SelectedEngineer, Mode=TwoWay}" />
 
                     <TextBlock Text="Project Manager:" Grid.Row="3" Grid.Column="0" Margin="0,2,5,0" />
                     <telerik:RadComboBox x:Name="ProjectManagerSelection"
                                          Grid.Row="3" Grid.Column="1"
                                          Margin="0,2,0,0"
                                          TabIndex="4"
                                          IsTabStop="True"
                                          ClearSelectionButtonVisibility="Visible"
                                          ClearSelectionButtonContent="Show all"
                                          DisplayMemberPath="DisplayName"
                                          ItemsSource="{Binding ProjectManagers}"
                                          SelectedItem="{Binding SelectedManager, Mode=TwoWay}" />
 
                     <TextBlock Text="NYC Project?" Grid.Row="4" Grid.Column="0" Margin="0,2,5,0" />
                     <CheckBox x:Name="NycProjectCheckBox" 
                               Grid.Row="4" Grid.Column="1"
                               Margin="0,2,0,0"
                               IsTabStop="True"
                               TabIndex="5" />
 
                     <TextBlock Text="NYC Service Area:" Grid.Row="5" Grid.Column="0" Margin="0,2,5,0" />
                     <telerik:RadComboBox x:Name="NycServiceAreaSelection"
                                          Grid.Row="5" Grid.Column="1"
                                          Margin="0,2,0,0"
                                          TabIndex="6"
                                          IsTabStop="True"
                                          IsEnabled="{Binding IsChecked, ElementName=NycProjectCheckBox }"
                                          ClearSelectionButtonVisibility="Visible"
                                          ClearSelectionButtonContent="Show all"
                                          DisplayMemberPath="DisplayName"
                                          ItemsSource="{Binding NycServiceAreas}"
                                          SelectedItem="{Binding SelectedNycServiceArea, Mode=TwoWay}" />
 
                     <telerik:RadButton Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"  Content="Create Project"
                                        HorizontalAlignment="Center"
                                        Height="Auto"
                                        Margin="0,10,0,0"
                                        VerticalAlignment="Top"
                                        TabIndex="7"
                                        IsTabStop="True"
                                        Width="100"
                                        Command="" />
 
                 </Grid>
             </telerik:RadMenuItem>
 
             <telerik:RadMenuItem Header="Copy Project" IsTabStop="False">
                 <Grid Width="200">
                     <Grid.ColumnDefinitions>
                         <ColumnDefinition Width="Auto"/>
                         <ColumnDefinition Width="*"/>
                     </Grid.ColumnDefinitions>
                     <Grid.RowDefinitions>
                         <RowDefinition Height="25"/>
                         <RowDefinition Height="*"/>
                     </Grid.RowDefinitions>
 
                     <TextBlock Text="New Project No:" Grid.Row="0" Grid.Column="0" Margin="0,2,5,0" />
                     <telerik:RadMaskedTextInput Name="copyProjectNo"
                                                 Grid.Row="0" Grid.Column="1"
                                                 Mask="0000-00-00"
                                                 HorizontalAlignment="Left"
                                                 Margin="0,0,0,0"
                                                 VerticalAlignment="Top"/>
 
                     <telerik:RadButton Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"  Content="Copy Project"
                                        HorizontalAlignment="Center"
                                        Height="Auto"
                                        Margin="0,10,0,0"
                                        VerticalAlignment="Top"
                                        Width="100"
                                        Command="" />
                 </Grid>
             </telerik:RadMenuItem>
 
             <!--<telerik:RadMenuItem Header="{Binding CurrentHeader}"-->
             <telerik:RadMenuItem IsTabStop="False" Header="Cost Increase"
                 IsEnabled="{Binding CurrentProjectIsNyc}"
                                  Command="">
             </telerik:RadMenuItem>
 
             <telerik:RadMenuItem IsTabStop="False" Header="99 Project"
                                  IsEnabled="{Binding CurrentProjectIsNyc}"
                                  Command="">
             </telerik:RadMenuItem>
         </telerik:RadContextMenu>
 
     </telerik:RadDropDownButton.DropDownContent>
 </telerik:RadDropDownButton>

Thanks,

Greg
David
Top achievements
Rank 1
 answered on 27 Mar 2015
1 answer
227 views
I am inserting a hyperlink just before full stop in Arabic language and the hyperlink causes words to jumble up. Here is the html which I import from the file. When I insert Hyperlin by selectiong the text near the '.' the text gets jumbled. Screenshot is attached
............................................................................................................................................................................

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 12px;line-height: 1.15; }
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; }
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; }
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; }
.p_4FB91091 { telerik-style-type: local;direction: rtl; } </style></head><body><p dir="RTL" class="Normal p_4FB91091"><span dir="RTL">منيب يبنت هيع سش ؤىةىؤلاؤضخخ.</span></p></body></html>

....................................................................................................................................................................................
Tanya
Telerik team
 answered on 27 Mar 2015
5 answers
262 views
Hi,

I'm experiencing crash in my RadCartesianChart. I have a databound grid showing the source data, I also have a RadCartesianChart with a ScatterLineSeries showing a graphical representation of this data. The ScatterLineSeries I create and add to the chart in code.

When I delete rows from the grid, the points are also removed from the chart, as expected.

After I make certain changes, I wish to clear the chart and draw the series again, to do this I call RadCartesianChart.Series.Clear() and recreate the series once again. Once I've done this however, if I delete an entry in the grid I experience a crash with the error....

An unhandled exception of type 'System.ArgumentException' occurred in Telerik.Windows.Controls.Chart.dll

Additional information: The provided node does exist in this collection.

Am I clearing out the series correctly when I reset the chart?

I have produced a small test app to demonstrate this behaviour available on request.

Here is the stack trace.

    at Telerik.Charting.NodeCollection.Remove(ChartNode node)
   at Telerik.Charting.ElementCollection`1.RemoveItem(Int32 index)
   at System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
   at Telerik.Charting.DataPointCollection`1.System.Collections.Generic.IList<Telerik.Charting.DataPoint>.RemoveAt(Int32 index)
   at Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.PerformRemove(Object removedDataItem, Int32 removedItemIndex)
   at Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.HandleItemRemove(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.ChartView.ChartSeriesDataSource.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
   at System.Collections.ObjectModel.Collection`1.Remove(T item)
   at System.Collections.ObjectModel.Collection`1.System.Collections.IList.Remove(Object value)
   at Telerik.Windows.Data.QueryableCollectionView.RemoveItemFromSourceList(IList list, Object removedItem)
   at Telerik.Windows.Data.QueryableCollectionView.RemoveItemFromSource(Object removedItem)
   at Telerik.Windows.Data.QueryableCollectionView.Remove(Object item)
   at Telerik.Windows.Data.DataItemCollection.Remove(Object item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.DeleteItems(IEnumerable`1 itemsToDelete)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.DeleteSelectedItems()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.TryDeleteSelectedItems()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnDeleteCommand(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
   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.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at System.Windows.Input.RoutedCommand.Execute(Object parameter, IInputElement target)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ExecutePendingCommand()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.PendAndExecuteCommands(KeyEventArgs e)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnKeyDown(KeyEventArgs e)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.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.RaiseTrustedEvent(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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()

Thanks,

Rob
 
Petar Marchev
Telerik team
 answered on 27 Mar 2015
5 answers
300 views
Hi guys,
After plotting the route on the RadMap, how can I easily edit the route by simply dragging one of the points in the plotted route? Attached is the sample from Bing Map where user can modified the route by dragging it.

Thanks

Regards
KokHooi
Pavel R. Pavlov
Telerik team
 answered on 27 Mar 2015
3 answers
272 views
I'm guessing this is yet another bug in the RadListBox event handeling:

Create a RadListBox and set it up for Drag and Drop, and then attach handlers for DragInitialized and DragDropCompleted.

Drag and Drop Items and observe:

1. Dragging item from one list box to another does both DragInitialized and DragDropCompleted (correct)
2. Dragging an item to an invalid target and dropping does both DragInitialized and DragDropCompleted (correct)
3. Dragging and item and pressing ESC to cancel also does both DragInitialized and DragDropCompleted (correct)

However...

4. Dragging and item to another position in the same listbox to rearrange only calls DragInitialized handler.  The DragDropCompelted handler is never called. (BUG!)

This screen cast demonstrates: http://screencast.com/t/mx9yQx0EdtZx

David
Kalin
Telerik team
 answered on 27 Mar 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?