Telerik Forums
UI for WPF Forum
4 answers
202 views

In XAML, I try to bind the RoutingService of my diagram:

<telerik:RadDiagram ....... RoutingService="{Binding Router}" ... />

And I get this error:

'RoutingService' property is read-only and cannot be set from markup. Line 92 Position 45.

Why do I have to assign this router in code-behind? Makes sense to bind it since it can easily be a property of my viewmodel...

UPDATE: Basically, I'm trying to assign the Router to an instance of OrgTreeRouter.

Kristoffer
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
77 views
Hi!
I recently installed "RadControls for WPF Q3 2012" and I see only WPF40 and WPF45 in the binaries folder. What about WPF35 that existed in the previous release? Not available? What does this mean for my projects?
Dimitrina
Telerik team
 answered on 24 Jan 2013
2 answers
236 views
Hi,

i have a view with two RadGridView, in both the Columns are autogenerated.
In the second one the property ShowColumnHeaders is set to false, so you don't see that there are two grids.
In the view you see a GridView, a black line and then the next GridView.

            <telerik:RadGridView x:Name="TodoGrid"
                                 Grid.Row="0"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="True"
                                 ColumnWidth="*"
                                 IsReadOnly="True"
                                 SelectionUnit="Cell"
                                 ItemsSource="{Binding ToDoRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowGroupPanel="False" />
 
.
.
.
.
 
            <telerik:RadGridView x:Name="DoneGrid"
                                 Grid.Row="2"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="False"
                                 ColumnWidth="*"
                                 SelectionUnit="Cell"
                                 IsReadOnly="True"
                                 ItemsSource="{Binding DoneRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowColumnHeaders="False"
                                 ShowGroupPanel="False" />

The user can resize the columns in the top grid and i want now that the columns on the bottom grid resize in the same way like the top ones. I try to handle this about the ResizingEvent but don't find a working solution.

Can somebody please support me by this issue.
Mark
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
880 views
Hi,

I'm using MVVM and I want to control on the ViewModel which rows are selected.  To accomplish that I'm trying to bind the GridViewSelectColumn to a property, but that doesn't seem to work because it doesn't accept DataMemberBinding.  How can I accomplish that?

            <telerik:RadGridView.Columns> 
                <telerik:GridViewSelectColumn DataMemberBinding=""/> <!-- not valid -->

Thanks in advance,

Wagner
Lee Francis
Top achievements
Rank 1
 answered on 24 Jan 2013
5 answers
301 views
Hi,

I've looked at the demos of the ChartView control on how to create a bar chart and noticed that each bar is defined in xaml and bound to data. 

In my case the bars aren't known until runtime, so my question is how can one dynamically add barseries to a Chartview using MVVM ?

My data is defined as such:

class BarData // Represents one "item" on the x-axis
 
{
DateTime Date {get; set;} // X-Axis, works fine
 
Dictionary<string,double> Items = new Dictionary <string, double> ();  // string is the name of the category, and double is the value
 
}

I'm not sure if this is the best way to represent data for creating the Chart and I'm open to feedback for this.
Nikolay
Telerik team
 answered on 24 Jan 2013
9 answers
190 views
Good evening,

I keep experiencing a null reference exception when pressing Mouse Left Button Down. The event appears to be random (there must be a reason for it) but I am unable to determine if it is something I have caused or if it is the control itself.

I'm a bit of a newbie and I don't fully understand what details of the error message.
Below I have pasted the exception message generated in VS2010. Does this mean anything to anyone?

Thank you very much for your time,

Rob


Message

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls
  StackTrace:
       at Telerik.Windows.Controls.Primitives.ListItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\ListControl\ListItem.cs:line 91
       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)
       at System.Windows.Threading.Dispatcher.InvokeImpl(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.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at TAS2.App.Main() in C:\TAS2\TAS2\obj\x86\Debug\App.g.cs:line 0
  InnerException:
Georgi
Telerik team
 answered on 24 Jan 2013
1 answer
119 views
I know in 2012 Q3 there is an example of ColorPicker and ColorEditor integration, however, it involves the requirement of a custom window plus a custom viewmodel. This is really not developer-friendly or MVVM-friendly.

I would like to see it integrated by default so that I can just declare something like the following instead of having to create a CustomColorViewModel for every color that I want to edit:
<telerik:RadColorPicker SelectedColor="{Binding FillColor, Mode=TwoWay}" EnableColorEditor="True" />

WPF toolkits from some other companies already has this feature, and IMO this should be a very basic feature of the ColorPicker control. Please add it into the next release.
Petar Mladenov
Telerik team
 answered on 24 Jan 2013
8 answers
349 views
I don't need the border-less cells but I need to really merge two footer cells. Is it possible to merge footer cells of two consecutive columns?

I need to enter some text in the footer cell but width of the column is too short to display that text. This is why I need to merge the footer cells.

Any suggestions?
Maya
Telerik team
 answered on 24 Jan 2013
2 answers
143 views
I have a TreeView in my UserControl and when I tab into it from the previous control, the focusvisual shows on the TreeView as a whole, and I can't seem to get access to the TreeViewItems.  How can I make the first (or selected) TreeViewItem be the one that has the focus so I can navigate the Tree?

Thanks in advance,
Steve
Steve
Top achievements
Rank 1
 answered on 23 Jan 2013
0 answers
82 views
Hi Telerik,

I have a RadGridView with a DataTable dt as ItemsSource. Since dt is dynamic, I cannot define the columns in XAML. As a result, I set AutoGenerateColumn to true.

One trouble I have, however, is that a few of these columns are foreign keys and I would like to set those columns to be GridViewComboBoxColumns instead of the standard GridViewBoundColumn for strings. Unfortunately, it appears that GridViewComboBoxColumns (along with others like GridViewHyperLinkColumns, etc) are never actually autogenerated regardless of data type.

Is there any way I can hijack the column generation process to ensure a GridViewComboBoxColumn is generated when needed? All I really need is a combo box that lets me choose the value for cells in particular columns.

Thanks.
New
Top achievements
Rank 1
 asked on 23 Jan 2013
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?