Telerik Forums
UI for WPF Forum
1 answer
288 views
Hi
Sometimes i need to use the them colors for border brush, so the color changes if the them changes

Is that possible here?

Thanks,
Akram
Vanya Pavlova
Telerik team
 answered on 25 Dec 2012
1 answer
176 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
317 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
106 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
112 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
160 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
154 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
267 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
211 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
216 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
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
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
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?