Telerik Forums
UI for WPF Forum
7 answers
309 views
Hello,

I'm using RadCartesianChart with multiple series (each series contains thousand of data points). I enabled ChartTrackBallBehavior (

<telerik:ChartTrackBallBehavior ShowIntersectionPoints="False" ShowTrackInfo="True" SnapMode="AllClosePoints" TrackInfoUpdated="ChartTrackBallBehavior_OnTrackInfoUpdated"/>) . Now in TrackInfoUpdated a would like find closest data point. Unfortunately property Context.ClosestDataPoint of TrackBallInfoEventArgs always returns first datapoint of first series regardless which datapoint is really closest. How can I detect really closest data point?

Thanks for help.

David

Avneesh
Top achievements
Rank 1
 answered on 31 Oct 2013
3 answers
128 views

Hi,

I'm facing a serious problem using RadCartesianChart.



Sometimes i receive this exception :

'-1' is not a valid value for property 'Height'.   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at System.Windows.FrameworkElement.set_Height(Double value)
   at Telerik.Windows.Controls.ChartView.PresenterBase.ArrangeUIElement(FrameworkElement presenter, RadRect layoutSlot, Boolean setSize)
   at Telerik.Windows.Controls.ChartView.PointTemplateSeries.UpdatePresenters(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.PointTemplateSeries.UpdateUICore(ChartLayoutContext context)
   at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context)
   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)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)




After this exception the control stops working. Have you an idea ?



Thanks a lot by advance







Petar Marchev
Telerik team
 answered on 31 Oct 2013
3 answers
154 views
Hi,

I wants to save the document in my custom format. 

How to save it and how to write this code.

If you provide any demo it will very helpfull to me.

Thanks
Ajita
Ajita
Top achievements
Rank 1
 answered on 31 Oct 2013
9 answers
314 views
Hi,

I downloaded the source project with the RadPaneGroupRegionAdapter from here:

Using the RadDocking control with Prism 

And I updated the reference and the bootstrapper to use the Prism 4 November release. Then I found it's no longer working. 

There is no exceptions, just that the RadPane's are not showing.

Following are the only code change I made, (all inside bootstrapper):

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
 
using Telerik.Windows.Controls;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
 
 
namespace RadDockingAndPRISM
{
    public class Bootstrapper : UnityBootstrapper
    {
        protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
        {
            var mappings = base.ConfigureRegionAdapterMappings();
 
            mappings.RegisterMapping(typeof(RadPaneGroup), ((IUnityContainer)Container).Resolve<RadPaneGroupRegionAdapter>());
 
            return mappings;
        }
 
        protected override DependencyObject CreateShell()
        {
            Shell shell = Container.Resolve<Shell>();
#if SILVERLIGHT
            App.Current.RootVisual = shell;
#else
            shell.Show();
#endif
 
            return shell;
        }
 
        //protected override IModuleCatalog GetModuleCatalog()
        //{
        //    var catalog = new ModuleCatalog();
        //    catalog.AddModule(typeof(ModuleA.ModuleA));
        //    catalog.AddModule(typeof(ModuleB.ModuleB));
        //    return catalog;
        //}
 
        protected override void ConfigureModuleCatalog()
        {
            base.ConfigureModuleCatalog();
            ((ModuleCatalog)ModuleCatalog).AddModule(typeof(ModuleA.ModuleA));
            ((ModuleCatalog)ModuleCatalog).AddModule(typeof(ModuleB.ModuleB));
 
 
        }
    }
}

Could you please help? Thanks!

Vladi
Telerik team
 answered on 31 Oct 2013
1 answer
83 views
Is there any way to subscribe to mouse events on a line series that is rendered in light mode? I tried testing some mouse events (enter, move, leave, mousedown) and they work when the line series is set to full mode, but not when it's light. I've been wondering if this is because of a lack of a clickable area in the extremely thinly rendered line series or if it's because of the mechanism in which a light series is rendered.

If there's documentation about what is available/unavailable when the series is rendered in Light Mode, could I be linked to it? Thank you!
Ves
Telerik team
 answered on 31 Oct 2013
2 answers
115 views
I am facing an interesting problem with the RadRichTextBox. I assemble a document converting documents to fragments, and the documents that contain the fragments can contain merge fields. There will only be a single merge. The assembled document is displayed in a RadRichTextBox that I want to display with the merged values, meaning that I display this RadRichTextBox with "Document.ChangeAllFieldsDisplayMode(FieldDisplayMode.Result)". A second RadRichTextBox displays the document used for assembly, depending on the fragment selected.

Seems like things are working well with the merge fields except that the values can change, and the changes are not reflected in the assembled document. When I change the ChangeAllFieldsDisplayMode back and forth the changed will be displayed. Any good way to fix this problem?
Clifford
Top achievements
Rank 1
 answered on 30 Oct 2013
2 answers
106 views
I noticed that there was a Header Row option available (ToggleTableLookFirstRowOptionCommand) but it does not seem to have any effect. Is there something I am doing wrong?
Clifford
Top achievements
Rank 1
 answered on 30 Oct 2013
1 answer
60 views
Hi,

I have a RadChart containing a SeriesMapping whose ItemSource is data bound to a collection. This collection is also bound to a grid so the contents can be altered. This works great, however whenever I add a new item to the collection the series on the chart appears to redraw, ie it draws from left to right.

I fully understand that the collection has changed so this needs to be reflected in the chart, but the drawing it does is problematic, is there any way to control how this renders? Ideally I don't want to see it being drawn in real time, only once it has been fully rendered. I know this might mean a slight delay but would be much more desirable from a user perspective.

Thanks
Rob
Top achievements
Rank 1
 answered on 30 Oct 2013
3 answers
151 views
Hi, I've got localization working per the online documentation 
http://www.telerik.com/help/wpf/radimageeditor-localization.html

but still the AUTO in the zoom control is not localized. 

I must be missing something... what is it?

Thanks,
Bob
Petya
Telerik team
 answered on 30 Oct 2013
1 answer
107 views
Hello, I'm using a custom RibbonView style derived from the Windows 8 theme.
When I press the application menu button (HorizontalOffset="0" for DropDownPopup), the popup menu appears as in the attached image "1" or "2" depending on different computers.
To correct this, when I set HorizontalOffset to the width of the popup menu, I obviously get the results as in the image "2" or "3".
I have tested several properties to control the popup behavior, but nothing helped and I have no idea why this popup behavior appears different for some specific desktop settings.
Can this be fixed? Thank you!
Kiril Vandov
Telerik team
 answered on 30 Oct 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
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?