Telerik Forums
UI for WPF Forum
1 answer
139 views
Is it possible to control the location of the window after it has been minimized? Currently it always shows right above the start bar. 
Kalin
Telerik team
 answered on 14 Apr 2014
2 answers
122 views
Hi!

I am trying to create a tree diagram in the code behind. The problem is the connectors are segmented to much. Is there a way to adjust segmentation? Attached you can find the screen grab.

Thanks,
Sammy
Top achievements
Rank 1
 answered on 14 Apr 2014
6 answers
129 views
I'm seeing two different validation error messages with different styles when I hover the mouse over slightly different portions of the hotspot. Is there a way I can get rid of the second one - the one I did not set?

Yordanka
Telerik team
 answered on 14 Apr 2014
1 answer
76 views
Hello.
I faced with the next problem.
I have form and one comboBox in this form. I move this combobox dynamically. When I click one place  - combobox will be  displayed there and  open. But when I click to another place - there will be error. But when I try to use debuger and add few breakpoints in different places - I can't catch this exeption

Message = "Object reference not set to an instance of an object."

and StackTrace

t Telerik.Windows.Controls.AutoClosePopupWrapper.set_IsOpen(Boolean value) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Popup\AutoCloseWrapper\AutoClosePopupWrapper.cs:line 104
   at Telerik.Windows.Controls.AutoClosePopupWrapper.OnMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Popup\AutoCloseWrapper\AutoClosePopupWrapper.cs:line 248
   at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
Rosen Vladimirov
Telerik team
 answered on 14 Apr 2014
10 answers
205 views
My goal is to allow clients to place markers on a graph. They would like to select points of interest which are usually a local maximum on a LineSeries. The idea would be to use the ChartTrackBallBehavior to place custom annotations on the chart using the method described in the following post:

http://www.telerik.com/forums/trackball-position-hold-on-mouse-click

Selecting a local maximum is quite hard especially with the kind of mice our clients use (OzuPad). That is why we would like the TrackBall to snap to a local maximum. Unfortunately the only type of snap is snap to the closest point. Do you have any idea how we should implement snapping to a local maximum? Not using the ChartTrackBallBehavior is fine, but it would be a shame to let go of the features it already provides.
Petar Marchev
Telerik team
 answered on 14 Apr 2014
5 answers
1.3K+ views
I need to customize the labels on the X axis of a cartesian chart.  The date/times are not uniform across the X axis (see attached screen shot) but we'd like to see the labels/tics at regular intervals. 

For example, the attached chart starts a 5/19/2013 7:00:21 and we'd like to have a tick and label show as 5/19/2013 (midnight) even though there is not a data point at that time.  Then we'd like to have a label and tickmark at midnight each following day. So in this case, we'd like to see 5/19/2013, 5/20/2013, and 5/21/2013.

Any ideas would be helpful (I've very new to using the Telerik WFP controls).

<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="LatLon.Views.ChartWindow"
        Title="Chart" Height="600" Width="600">
    <Grid>
        <telerik:RadCartesianChart Name="myChart" >
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="Y">
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis />
            </telerik:RadCartesianChart.HorizontalAxis>     
            <telerik:SplineSeries  CategoryBinding="XValue" ValueBinding="YValue" >
            </telerik:SplineSeries>
        </telerik:RadCartesianChart>
    </Grid>
</Window>

public partial class ChartWindow : Window
   {
       public DataTable chartDataTable;
       public string yAxisLabel = string.Empty;
       public string xAxisLabel = string.Empty;
       public int xAxisColumn;
       public int yAxisColumn;
 
       public ChartWindow()
       {
           InitializeComponent();
       }
 
       public void Render()
       {
           List<ChartData> ChartDatas = new List<ChartData>();
 
           foreach (DataRow dr in chartDataTable.Rows)
           {
               ChartData cdc = new ChartData();
               cdc.XValue = (DateTime)dr[xAxisColumn];
               cdc.YValue = Convert.ToDouble(dr[yAxisColumn].ToString());
               ChartDatas.Add(cdc);
           }
 
           myChart.HorizontalAxis.LabelInterval = (int)(chartDataTable.Rows.Count / 10);
           myChart.Series[0].ItemsSource = ChartDatas;
 
           myChart.HorizontalAxis.Title = xAxisLabel;
           myChart.VerticalAxis.Title = yAxisLabel;
 
           myChart.HorizontalAxis.LabelFitMode = Telerik.Charting.AxisLabelFitMode.Rotate;
           myChart.HorizontalAxis.LabelRotationAngle = 45;
       }
   }
 
   public class ChartData
   {
       public DateTime XValue { get; set; }
       public double YValue { get; set; }
   }
Petar Marchev
Telerik team
 answered on 14 Apr 2014
4 answers
237 views
Hi,

I have a line series with ChartTrackBallBehavior set, I use the same line series and change the itemsource programmatically when users picks some other field for display.

Same line series with changing itemsource... After few change in itemsource I get the following error... This seems to happen randomly..This seems to happen if you have the mouse over the chart at one place (i.e without MOVING the mouse) before the lineseries is bound to the new collection.

Is there any way to capture the event something like  MouseOver? of the Chart\LineSeries\TrackBall? and handle the exception otherwise it crashes the application with this unhandled exception.

"Value cannot be null. Parameter name: key"
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.ContainsKey(TKey key)
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.GetPresenterToDataPointInfos(List`1 dataPointInfos) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 754
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.FilterDataPointsByClosestCategoryPerAxis(List`1 dataPointInfos) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 731
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.UpdateDataContext(ChartDataContext context) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 373
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.UpdateVisuals() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 340
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.OnMouseMove() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 627
   at Telerik.Windows.Controls.ChartView.ChartTrackBallBehavior.AdornerContainerMouseMove(Object sender, MouseEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartTrackBallBehavior.Branch.cs:line 645
   at System.Windows.Input.MouseEventArgs.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.MouseDevice.Synchronize()
   at System.Windows.Input.MouseDevice.OnHitTestInvalidatedAsync(Object sender, EventArgs e)
   at System.Windows.Input.InputManager.HitTestInvalidatedAsyncCallback(Object arg)
   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)
Petar Marchev
Telerik team
 answered on 14 Apr 2014
2 answers
146 views
Hi Telerik Support,

Currently, I am facing an issue with DragTooltip in RadTreeView. I am currently implementing drag and drop in RadTreeView object using DragDropManager. I am using the databinding to construct the hierarchy. I noted that DragTooltip supposed to display text of the dragover treeview item. However, in my project, DragTooltip is displayed the namespace of the viewmodel which (i.e WpfApplication2.DataItem) instead of the text displayed in treeviewitem (i.e Item2).

Can anyone advice me how to solve the above mentioned issue.


Thanks.

With Best Regards,
Saw
Saw Lwin
Top achievements
Rank 1
 answered on 14 Apr 2014
2 answers
990 views
Hi Telerik Support,

I am using telerik treeview (WPF) in my project. I am using DragDropManager to handle the drag drop events to perform the custom action. The issue I am facing right now is that I want to disable the treeviewitem from dragging based on the runtime value. I saw some thread asking the same question. However, the solution is using the old drag and drop method which is RadTreeView_PreviewDragStarted and some of them are Silverlight. I want to know the solution in WPF.

Thanks.
Saw Lwin
Top achievements
Rank 1
 answered on 14 Apr 2014
1 answer
85 views
Hi, I have a radgridview with ItemSource as binding and all but one column with DataMemberBinding. The exception column is the one which I would like to get user input. However, after typing some stuffs into a cell of that column and pressing enter, the cell will become blank again. Is there a solution or workaround for this?

Thank you for your attention!
Dexter
Top achievements
Rank 1
 answered on 13 Apr 2014
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?