Telerik Forums
UI for WPF Forum
2 answers
56 views
Hi every one,

I've read the documentation about RadSpellChecker and couldn't find anything to do with RadSyntaxEditor. I've already implemented a spellchecker inspiring WordSpellChecker class from SDK Sample Browser and linked it to the RadSyntaxControl via a tagger although I'm not sure if it's a best practice. This solution has a couple of issues including having a lag as a result of working with document in WordSpellChecker and also it needs to be implemented everything from scratch like managing the dictionary.

Does anyone have any better idea or is there any smooth way to join them?

Thanks,
Dariush
Dariush
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 04 Nov 2024
1 answer
82 views

I am using a RadCartesianChart with a ChartSeriesProvider to have multiple ScatterLineSeries plotted. I am controlling the X and Y min and max values displayed programmatically.

I am using a timer so I can change the X axis at some frequency I can set. I am testing it, but I intend to update the X min and max more than once a second so the chart shows a live previous 10 seconds. You can see points when they are created, then move through time until they go off the chart once it's more than 10 seconds old.

 

I am running into two problems.

I have 4 series. Each one is having points added about once a second. I run until I eventually get

'Collection was modified; enumeration operation may not execute.'

The call stack shows

   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at Telerik.Charting.DataPointCollection`1.<System.Collections.Generic.IEnumerable<Telerik.Charting.DataPoint>.GetEnumerator>d__5.MoveNext()
   at Telerik.Charting.NumericalAxisModel.PlotNormal(IEnumerable`1 series)
   at Telerik.Charting.NumericalAxisModel.PlotCore(AxisUpdateContext context)
   at Telerik.Charting.ChartAreaModelWithAxes.PlotAxisAndCombinedStrategy(AxisModel axis, AxisUpdateContext context)
   at Telerik.Charting.ChartAreaModelWithAxes.PlotAxesAndCombinedStrategies(SeriesByAxesTuple seriesByAxes)
   at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect)
   at Telerik.Charting.ChartNode.Arrange(RadRect rect, Boolean shouldRoundLayout)
   at Telerik.Charting.ChartAreaModel.Arrange()
   at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI()
   at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated()

...

I think the chart is enumerating through the collection to see if it needs to update the axes every time a point is added. I am setting both axes myself as I have said so I'd think it wouldn't have to do that. If my assumption is correct, is there a way to turn this off? Otherwise should I look at locking the collection, or creating a buffer and adding chunks of data at a time? It does happen when there is just one series, and all 4 series.

 

 

Sorry to put two questions in here, but they may be related. I am wondering how much I am overloading the chart. Maybe it's not intended to have the axis updated super frequently so it's view/window moves through time.

The other problem relates to the band annotations I am using. They actually don't change, at least not when the chart is moving through time. I am setting vertical bands. The Y axis range only changes when values come in that are too high. But when that happens, the bands still stay the same. Both upper and lower bands' To and From don't change when the chart is moving through time.

''-1' is not a valid value for 'Width'.'

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in System.Windows\DependencyObject.cs:line 812
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) in System.Windows\DependencyObject.cs:line 605
   at Telerik.Windows.Controls.ChartView.CartesianPlotBandAnnotation.UpdatePresenters(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.ChartAnnotation.Update(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.CartesianStrokedAnnotation.UpdateUICore(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.RadChartBase.UpdatePresenters(ChartLayoutContext context, List`1 presenters)
   at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateUICore(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI()
   at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in System.Windows.Threading\ExceptionWrapper.cs:line 59
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in System.Windows.Threading\ExceptionWrapper.cs:line 24
 ...

 

The chart bands shouldn't ever have -1 being set as their width. When this exception happens, none of my code is changing the bands. The properties the bands' To and From are bound to aren't changing. I haven't seen this happen when I just comment out the bands in xaml.

 

 

j
Top achievements
Rank 1
Iron
 answered on 31 Oct 2024
1 answer
60 views
We are using a RadGallery in a button's DropDownContent.  Is there a way to make the arrow keys work within the RadGallery?  I tried setting CanKeyboardNavigationSelectItems and KeyTipService.IsKeyboardNavigationEnabled, but they didn't seem to have any effect.
Stenly
Telerik team
 answered on 29 Oct 2024
2 answers
94 views
Hi everybody,

The cursor position is incorrect in the RadSyntaxEditor  when the EditorFontFamily is set to "SegoeUI". I attached some screenshots from the Telerik Demo app as a sample. Seems to be  a bug in the control.


Thank you,
Dariush
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Oct 2024
0 answers
66 views

Hi,

  Does anyone has a sample of a Wind Rose done in WPF using the Polcar Chart ?

Thanks

C

Carlos
Top achievements
Rank 1
 asked on 24 Oct 2024
0 answers
113 views
  1. I find GridViewCheckBoxColumn far too dull - the difference between checked and unchecked is not obvious enough when it's not active.  Is there an easy way to punch it up?
  2. I'd like the functionality of GridViewSelectColumn, but from what I've been able to determine, it isn't really intended to be used with MVVM.  The documentation says explicitly that "GridViewSelectColumn does not bind to data".  Am I missing something?

Thanks!

Brad.

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 22 Oct 2024
2 answers
58 views

I'm using a DefaultVisualStyle Property to set the style in order to control the Fill color of ScatterPointSeries via the DataItem.PointColor property (as seen below)

This works fine, but when I try to use a ChartDataSourceStyle to reduce the number of datapoints using Index-based sampling, something breaks and I no longer see ANY points displayed in the graph, due to this binding failure:

Path Tag.DataItem.PointColor Path.Fill Brush PointColor property not found on object of type DataPointSamplingInfo.

 

** How can I redirect the DataPointSamplingInfo points to use the PointColor of its DataItems (they'll all have the same value) **

<Style x:Key="ScatterPointStyle" TargetType="Path" >
            <Setter Property="Fill" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag.DataItem.PointColor}"/>
</Style>

 

  <telerik:ChartSeriesProvider Source="{Binding ChartData}"  >
      <telerik:ChartSeriesProvider.SeriesDescriptors >

         <telerik:ScatterSeriesDescriptor XValuePath="SV"
                                                                         YValuePath="Depth"
                                                                         x:Name="DownCastPoints"
                                                                         ItemsSourcePath="ItemSelectionDown">
                                                            <telerik:ScatterSeriesDescriptor.Style>
                                                                <Style TargetType="telerik:ScatterPointSeries">
                                                                    <Setter Property="PointSize" Value="8,8"/>
                                                                    <Setter Property="Opacity" Value="0.8"/>
                                                                    <Setter Property="Visibility" Value="{Binding DownCastPointsVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                                    <Setter Property="DefaultVisualStyle" Value="{StaticResource ScatterPointStyle}"/>
                                                                </Style>
                                                            </telerik:ScatterSeriesDescriptor.Style>
                                                            <telerik:ScatterSeriesDescriptor.ChartDataSourceStyle>
                                                                <Style TargetType="telerik:ChartDataSource">
                                                                    <Setter Property="SamplingThreshold" Value="50" />
                                                                </Style>
                                                            </telerik:ScatterSeriesDescriptor.ChartDataSourceStyle>
                                                        </telerik:ScatterSeriesDescriptor>
Stenly
Telerik team
 answered on 16 Oct 2024
0 answers
144 views

Hi 

I've been using the Microsoft WebView2 control lately and find it quite horrible to work with... 

I was wondering if you guys at Telerik would be able to make a wrapper for it that improve the functionality of the control ? 

Problems that i encountered : 

- Initialization is pretty messed up and require that you setup a Rube Goldberg machine to make it work.

- Overflow issues : the Webbrowser may overflow any / all other WPF controls unless you do a lot of scorcery ... 

- Having the WebView inside a scrollbar is pretty messed up with overflow issues all over.


Martin
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 14 Oct 2024
0 answers
103 views

Hi,

Is there a way to change the icon for the rad expander from the circle with a '<' or '>' to an icon and shape that I define?

Thanks

Tony

Tony
Top achievements
Rank 1
 asked on 10 Oct 2024
0 answers
81 views

I'm sure this is trivial, but I've been unable to find the answer.  I have a RadGridView defined as follows:

<telerik:RadGridView
    ItemsSource="{Binding Products}"
    SelectedItem="{Binding SelectedProduct, Mode=TwoWay}">
    ...
</telerik:RadGridView>

However, when I change the "SelectedProduct" programmatically, the RadGridView doesn't show that highlighting.  What am I doing wrong?

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 09 Oct 2024
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?