Telerik Forums
UI for WPF Forum
1 answer
175 views
Hey,

I am evaluating the telerik chart component (trial version) for its suitability for our software project, and can not bring the RadCartesianChart to work.  

I am trying to put a new view atop of an existing viewmodel, and bind the chart data to a property of type ObeservableCollection<KeyValuePair<int, double>>. When the collection is empty its ok, but when trying to populate it, I get
ArgumentException: Dynamic getter is not supported for value types. 

Any idea why this happens and what the solution is? 

My code: View:
<telerik:RadCartesianChart Grid.Row="1">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.Series>
                <telerik:ScatterLineSeries XValueBinding="Key"
                       YValueBinding="Value"
                       ItemsSource="{Binding Path=DataSeries}">
 
                </telerik:ScatterLineSeries>
            </telerik:RadCartesianChart.Series>
 
        </telerik:RadCartesianChart>

And the view model:
// populated in Constructor
       private ObservableCollection<KeyValuePair<int, double>> mTempRandomData = new ObservableCollection<KeyValuePair<int, double>>();       
 
       private ObservableCollection < KeyValuePair <int, double> > mDataSeries = new ObservableCollection < KeyValuePair < int, double > > ();
 
        public ObservableCollection<KeyValuePair<int, double>> DataSeries
        {
            get { return mDataSeries; }
            set { mDataSeries = value; RaisePropertyChanged ( ()=>DataSeries );
            }
        }
 
        private void DoResetData ( )
        {
            DataSeries = new ObservableCollection < KeyValuePair < int, double > > ();
        }
        private void DoAddRandomData()
        {
            DoResetData (  );            
            DataSeries = mTempRandomData;
             
        }
Petar Marchev
Telerik team
 answered on 25 Dec 2012
3 answers
305 views
Hello

I would like to know if it is possible to use a single data source with the tree list view and describe the self referencing parent-son relationship in the data (ID property and ParentID propert), in opposition to having each node contain a property listing all of its sons.

I managed to do this with the rad grid view, but this is not satisfactory to me, i want to state which objects are root, in the grid view the nodes appear in both the first level and under their parent (I found this to exist in your examples as well), in addition the control operates as a master detail with several levels.

This was actually asked before on this thread:
http://www.telerik.com/community/forums/wpf/treelist/self-reference-with-datatable.aspx

but no actual response was made.

Thanks in advance.
Dimitrina
Telerik team
 answered on 24 Dec 2012
3 answers
104 views
Hi 
I know how to switch themes but the strange thing that the already opened windows does not affected by this line
StyleManager.ApplicationTheme = new Windows8Theme();

Is that true that i can't change the theme for the already opened windows?

Thanks,
Akram
Maya
Telerik team
 answered on 24 Dec 2012
1 answer
108 views
Hi everyone,

I have a button declared in a Prism region with a command declared in RadScheduleViewCommands. This button is used to advance the displayed date in my ScheduleView. 

<Button Label="Next day" Command="scheduleView:RadScheduleViewCommands.IncreaseVisibleDateLarge"/>

My RadScheduleView is declared in another region. This region can be shown or not, because it is inside a tab control. My problem is when I show my RadScheduleView in the tab, my button is disabled until the user clicks in the RadScheduleView. In this moment, the button is enabled and functional.

I need to change this behavior to enable the button in the moment the ScheduleView is shown on the screen, avoiding the user to click on the schedule. Is this possible? How?

Thank you!!!!

EDIT: The title of this post is wrong, The button is always visible. My problem is the IsEnabled property of the button. Don't know how to change the post title, sorry!
Konstantina
Telerik team
 answered on 24 Dec 2012
3 answers
154 views
Hello,

I have RadGridView working with DataPager. I encountered a problem when tried to select all items in RadGridView. To do this I am going through each page of DataPager and add items to GridView SelectedItems collection. It seems to work, but after that if I try to switch page or deselect any item - my selection is removed. 

What is right approach to do what I want?  
Maya
Telerik team
 answered on 24 Dec 2012
4 answers
150 views
I've downloaded and installed the WPF controls.

When the demo is run, it crashes. At first I thought that is was something I was doing, but each time I tried it I did something different. In the end, I just started the demo and did nothing and it still crashed.

It appears that it will always crash after about the same period of time regardless of the level of interaction I have with it.

This machine has XPPro SP2, V2008SP1 .Net v3.5SP1 installed.

Is there something I've missed?

--
Stuart
Phil
Top achievements
Rank 1
 answered on 23 Dec 2012
3 answers
260 views
Hi,

I am just starting on a trial version of telerik so I am still new to many concepts.

Here are some questions I like to ask about radmap:

1. I managed to load my geotiff image using UriImageProvider and specifying the geobounds. However, is it possible to load the geotiff image directly, i.e. without me having to use another tool to read off the geotiff header to find the location boundaries of the image.

2. My geotiff image is not a perfect square / rectangular image, that is, there are black background on pixels that have no information. How do I render the images such that these pixels show up as transparent since I be overlaying the image on top of my base map. With Arcmap, I can set this through the image properties. How do I do it with radMap?

Thanks!
Andrey
Telerik team
 answered on 21 Dec 2012
5 answers
203 views
Hello,

Because of broken Drag on Drop on GridView, I used now latest internal Build 1106.
I cant serialize my GridView now (Build 1029 works fine).

Object reference not set to an instance of an object

   at Telerik.Windows.Persistence.Serialization.Serializer.Serialize(Object obj) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Frameworks\Persistence\Serialization\Serializer.cs:line 77
   at Telerik.Windows.Persistence.PersistenceManager.Save(Object obj) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Frameworks\Persistence\PersistenceManager.cs:line 91
   at FileExplorer.View.ExplorerWindow.SaveState() in D:\Y\IZTMediaContainer\IZTMediaLibrary\View\ExplorerWindow.xaml.cs:line 105
   at IZTMediaLibrary.View.MainWindow.RadWindow_Closed(Object sender, WindowClosedEventArgs e) in D:\Y\IZTMediaContainer\IZTMediaLibrary\View\MainWindow.xaml.cs:line 83
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Telerik.Windows.Controls.RadWindow.OnClosed(WindowClosedEventArgs args) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\RadWindow.cs:line 552
   at Telerik.Windows.Controls.RadWindow.OnClosed() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\RadWindow.cs:line 677
   at Telerik.Windows.Controls.WindowBase.TryClose(Boolean shouldCloseHost) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\WindowBase.cs:line 715
   at Telerik.Windows.Controls.WindowBase.TryClose() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\WindowBase.cs:line 702
   at Telerik.Windows.Controls.WindowBase.Close() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\WindowBase.cs:line 564
   at Telerik.Windows.Controls.WindowBase.<.cctor>b__0(WindowBase w) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\WindowBase.cs:line 205
   at Telerik.Windows.Controls.CommandsHelper.TryCast[T](Object value, Action`1 action) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\CommandsHelper.cs:line 60
   at Telerik.Windows.Controls.CommandsHelper.<>c__DisplayClass5`1.<RegisterClassHandler>b__3(Object s, ExecutedRoutedEventArgs e) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Controls\Navigation\Window\CommandsHelper.cs:line 16
   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(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   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.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at Telerik.Windows.Controls.RadButton.OnClick() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Core\Controls\Buttons\RadButton.cs:line 389
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(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.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)

Tina Stancheva
Telerik team
 answered on 21 Dec 2012
7 answers
211 views
Hi there

the tree lines in RadTreeView are shown broken (indented to the right about 1-3 pixels) when I use a HierachicalTemplate for the TreeViewItems. Why?

I would like to attach a screenshot, but I dont't know how to do that.

Regards
Felix Brueckner

Tina Stancheva
Telerik team
 answered on 21 Dec 2012
3 answers
111 views
I'm getting the following stack trace when I run my app on a brand new Samsung Ativ Windows 8 touch device.

NullReferenceException
at Telerik.Windows.Automation.Peers.GridViewGroupPanelAutomationPeer.GetChildrenCore() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Automation\GridViewGroupPanelAutomationPeer.cs:line 44
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)
   at System.Windows.Automation.Peers.AutomationPeer.AutomationPeerFromInputElement(IInputElement focusedElement)
   at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
   at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   at System.Windows.UIElement.Focus()
   at System.Windows.Controls.ListBoxItem.HandleMouseButtonDown(MouseButton mouseButton)
   at System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonDownThunk(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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseDownThunk(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.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.StylusDevice.PlayBackCachedDownInputReport(Int32 timestamp)
   at System.Windows.Input.StylusLogic.PromoteStoredItemsToMouse(StylusTouchDevice touchDevice)
   at System.Windows.Input.StylusTouchDevice.OnManipulationEnded(Boolean cancel)
   at System.Windows.Input.TouchDevice.System.Windows.Input.IManipulator.ManipulationEnded(Boolean cancel)
   at System.Windows.Input.ManipulationDevice.OnManipulationCancel()
   at System.Windows.Input.ManipulationDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.ManipulationDevice.ProcessManipulationInput(InputEventArgs e)
   at System.Windows.Input.ManipulationLogic.ReportFrame(ICollection`1 manipulators)
   at System.Windows.Input.ManipulationDevice.ReportFrame()
   at System.Windows.Input.ManipulationDevice.RemoveManipulator(IManipulator manipulator)
   at System.Windows.Input.Manipulation.TryRemoveManipulator(UIElement element, IManipulator manipulator)
   at System.Windows.Input.TouchDevice.PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs)
   at System.Windows.Input.TouchDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TouchDevice.RaiseLostCapture(IInputElement oldCapture)
   at System.Windows.Input.TouchDevice.Capture(IInputElement element, CaptureMode captureMode)
   at System.Windows.Input.TouchDevice.PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs)
   at System.Windows.Input.TouchDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TouchDevice.RaiseTouchUp()
   at System.Windows.Input.TouchDevice.ReportUp()
   at System.Windows.Input.StylusLogic.PromoteMainUpToTouch(StylusDevice stylusDevice, StagingAreaInputItem stagingItem)
   at System.Windows.Input.StylusLogic.PromoteMainToTouch(ProcessInputEventArgs e, StylusEventArgs stylusEventArgs)
   at System.Windows.Input.StylusLogic.PromoteMainToOther(ProcessInputEventArgs e)
   at System.Windows.Input.StylusLogic.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.StylusLogic.InputManagerProcessInput(Object oInput)
   at System.Windows.Input.StylusLogic.PreProcessInput(Object sender, PreProcessInputEventArgs e)
   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)
All I have to do in order to get the exception is navigate to page in my app with a grid view on it. 

The only thing I've found that works as a work-around is to manually kill the TabTip.exe. This is obviously not an ideal solution.

Here's further information about the machine:
Operating System: Windows 8
Processor: Intel Atom CPU Z2760 @ 1.80 GHz
Installed Memory: 2.00 GB
System Type: 32-bit Operation System, x86-based processor
Pen and Touch: Pen and Full Windows Touch Support with 5 Touch Points
Ivan Ivanov
Telerik team
 answered on 21 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?