Telerik Forums
UI for WPF Forum
1 answer
81 views
Hello,
I have a RadChart control.  I would like to draw some important values.
I fixed X Axis range 0-720, And Y Axis range 0-240. The AutoRange properties are false.
I collect the ItemsSource data from a device. I think when I get some data over ~144 point RadChart re-samples the YValues and chart draws wrong(or rounded) values for me. And re-sampling  goes on while data come from my source. My Y axis values getting smaller !?

I use LineSeriesDefinition . I do not won't something like anti-aliasing, smoothing. Can it be a kind of chart issue ? 

I can see that I have "161" value as maximum(peak) YValue for my source and see it first. But when new values come I can see all values moved under 150 .  re-sampling done ??? Why my YValues getting smaller although my bound values still contains higher values such as 161. 

 <telerik:RadChart  x:Name="xRadChartECG1"  Grid.Column="1" ItemsSource="{Binding xSource}">
                                        <telerik:RadChart.DefaultView>
                                            <telerik:ChartDefaultView>
                                                <telerik:ChartDefaultView.ChartLegend>
                                                    <telerik:ChartLegend Visibility="Collapsed" />
                                                </telerik:ChartDefaultView.ChartLegend>
                                                <telerik:ChartDefaultView.ChartArea>
                                                    <telerik:ChartArea  EnableAnimations="False" LabelFormatBehavior="None" SmartLabelsEnabled="False" Background="White" >
                                                        <telerik:ChartArea.AxisY>
                                                            <telerik:AxisY AutoRange="False" MinValue="0" MaxValue="260"  AxisLabelsVisibility="Visible" StripLinesVisibility="Hidden" MinorTicksVisibility="Visible" MajorTicksVisibility="Visible" Visibility="Visible" />
                                                        </telerik:ChartArea.AxisY>
                                                        <telerik:ChartArea.AxisX >
                                                            <telerik:AxisX  IsDateTime="False" AxisLabelsVisibility="Visible" MajorTicksVisibility="Visible" Visibility="Visible" AutoRange="False" MinValue="0" MaxValue="720" />
                                                        </telerik:ChartArea.AxisX>
                                                        <telerik:ChartArea.ZoomScrollSettingsX>
                                                            <telerik:ZoomScrollSettings ScrollMode="None" />
                                                        </telerik:ChartArea.ZoomScrollSettingsX>
                                                    </telerik:ChartArea>
                                                </telerik:ChartDefaultView.ChartArea>
                                            </telerik:ChartDefaultView>
                                        </telerik:RadChart.DefaultView>
                                        <telerik:RadChart.SeriesMappings>
                                            <telerik:SeriesMapping>
                                                <telerik:SeriesMapping.SeriesDefinition>
                                                    <telerik:LineSeriesDefinition ShowPointMarks="False" ShowItemLabels="False">
                                                        <telerik:LineSeriesDefinition.Appearance>
                                                            <telerik:SeriesAppearanceSettings Fill="Green" Foreground="Green" Stroke="Green" StrokeThickness="1" />
                                                        </telerik:LineSeriesDefinition.Appearance>
                                                    </telerik:LineSeriesDefinition>
                                                </telerik:SeriesMapping.SeriesDefinition>
                                                <telerik:SeriesMapping.ItemMappings>
                                                    <telerik:ItemMapping FieldName="YValue"
                                             DataPointMember="YValue" />                                                  
                                                    <telerik:ItemMapping FieldName="Index"
                                             DataPointMember="XValue" />
                                                </telerik:SeriesMapping.ItemMappings>
                                            </telerik:SeriesMapping>
                                        </telerik:RadChart.SeriesMappings>
                                    </telerik:RadChart>
                                </Grid>

And the xSource is the below values . (same values comes for 10 times)

128
124
119
118
118
118
119
119
119
119
119
119
119
120
120
120
120
120
120
120
120
121
121
121
121
121
121
121
121
121
121
121
121
123
127
128
127
123
121
121
121
121
121
121
121
118
131
157
161
121
114
120
119
119
120
120
120
120
120
120
120
120
121
124
127
128
129
130
131
132
132

Thanks in advance
Petar Marchev
Telerik team
 answered on 09 Dec 2013
6 answers
105 views

So attached are 2 screens, one showing when I run with persistence and the other running without it... ShowColumnFooters is checked on cause I need it for column totals.  Don't like when it stops working for some strange reason...  I started to think it was the way I setup my settings popup for GridView but then I realized that it turns out to be when its loading settings for the Grid in code-behind.  I am actually not doing anything weird, I can wipe out the Isostorage if you like in my profile to see if this causes the anomaly to go away.  Its the first time I play with persistence, thought I was going to have to write my own stuff for this but ya'll did it for us.. :)



I don't do much in codebehind normally since I use MVVM for most everything but this is the one thing that I will drop in code behind when its strictly view related. 

Dimitrina
Telerik team
 answered on 09 Dec 2013
2 answers
141 views
How to bind date and decimal value from database to telerik radchart lineseries in X And Y axis in WPF Usercontrol page 
Prakash
Top achievements
Rank 1
 answered on 07 Dec 2013
2 answers
83 views
Hello,

We have a custom User Control that presents custom tool icons in a RadCarousel.  The data items that are in an Observable collection and used as the Item source have a ToolTip property.  Is there an event that can be used to synchonize the Carousel's items to show that hint?

Thanks,

Reid
Reid
Top achievements
Rank 2
 answered on 06 Dec 2013
2 answers
182 views
Hello,

i would like to only enable drag/drop effects outside of the TreeView. That means, when i drag the TreeViewItem inside TreeView, the DragDropEffects should be None, when the mouse is out of the TreeView, drop effects will be allowed.
1). I have tried the RadTreeView_ItemPrepared and set the PreparedItem.AllowDrop = false. But i can also drag a TreeViewItem and drop it after last TreeViewItem.
2). I tried to set DropPosition property of TreeViewDragDropOptions. But it could only be set to Inside :(

Any idea? Thanks.

Ivan
Ivan
Top achievements
Rank 1
 answered on 06 Dec 2013
1 answer
287 views
I have skinned the Auto Complete box to black then cursor is disappeared, can someone please help me to change the color of the caret to white.

Sharan
Kalin
Telerik team
 answered on 06 Dec 2013
0 answers
60 views
hi,

Is it possible to adjust the template so that the data is displayed in the DataGrid.
How to set Binding for columns that should be created automatically within the DataGrid.
How to avoid generating DataGrid for each row?
My data source is a DataTable and use FindMatchingItems function for custom filter.

by
Dalibor
Top achievements
Rank 1
 asked on 06 Dec 2013
1 answer
145 views
Hi,
I'm using the newly released version (2013.3.1204.40) of RadMaskedTextInput control.
The control has a strange behavior when pressing "delete" button on the keyboard.
<telerik:RadMaskedTextInput Culture="" Mask="" MinWidth="300"
    HorizontalContentAlignment="Right"
    UpdateValueEvent="LostFocus" TextMode="PlainText" InputBehavior="Insert" />
1. Type 1234.
2. Put the cursor between 1 and 2.
3. Press "Delete".
Result:
The input becomes "134", but the cursor moves to the position before "1", while I expect the cursor to be between 1 and 3. Is it a bug?
My environment: VS 2010, Windows 7.

Regards,
Gong
Petar Mladenov
Telerik team
 answered on 06 Dec 2013
1 answer
139 views
I have a problem with the RadPropertyGrid of WPF Q3 2013, in .Net 4.0.
 I'm trying to do a binding to a "Value" property of my data object "arg"


           propDef = new PropertyDefinition()
                    {
                        DisplayName = arg.Name.Value,
                        Description = arg.Description.Value,
                        Binding = new Binding()
                        {
                            Source = arg,
                            Path = new PropertyPath("Value", null) 
                           
                        },
                       
                        EditorTemplate = this.argTemplateSelector.SelectTemplate(arg, this.PropertyGrid)
                    }

but when the PropertyGrid is rendered on the screen I get an AmbiguousMatchException.
Dimitrina
Telerik team
 answered on 06 Dec 2013
11 answers
684 views

I am setting GridViewDataControl.ItemsSource to an instance of a QueryableCollectionView. When the grid is rendered on the screen I get an AmbiguousMatchException. Any ideas what might cause this?

I have included the stack trace below:

System.Reflection.AmbiguousMatchException was unhandled by user code

  HResult=-2147475171

  Message=Ambiguous match found.

  Source=mscorlib

  StackTrace:

       at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)

       at System.Type.GetProperty(String name)

       at Telerik.Windows.Controls.GridViewBoundColumnBase.GetValidationErrors(Object dataItem, String propertyName) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Columns\GridViewBoundColumnBase.cs:line 1694

       at Telerik.Windows.Controls.GridView.GridViewCell.<GetDataErrors>d__7.MoveNext() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 704

       at Telerik.Windows.Data.EnumerableExtensions.Count(IEnumerable source) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Core\Data\Collections\EnumerableExtensions.cs:line 126

       at Telerik.Windows.Controls.GridView.GridViewCell.UpdateIsValidState() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 624

       at Telerik.Windows.Controls.GridView.GridViewCell.UpdateValue() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 1708

       at Telerik.Windows.Controls.GridView.GridViewCell.SetCellElement() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 537

       at Telerik.Windows.Controls.GridView.GridViewRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:line 915

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 403

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 365

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 300

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 235

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 290

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Rows\GridViewRowItem.cs:line 199

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.MeasureChild(UIElement child, Size layoutSlotSize, Int32 i) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.NestedLayoutStrategy.cs:line 1575

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.MeasureOverride(Size constraint) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.NestedLayoutStrategy.cs:line 213

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 342

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\GridViewDataControl.cs:line 6659

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint)

       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.ContextLayoutManager.UpdateLayout()

       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

       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)

  InnerException: 

Dimitrina
Telerik team
 answered on 06 Dec 2013
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?