this is a followup to the question asked here
Wouldnt it be possible to implement it the way gong-wpf-dragdrop does it without breaking mvvm?
i considerthe line below in codebehind to not break mvvm so i could be wrong.
(DataContext as ViewModel).SelectedRecordThe way gong does it is you bind the view model itself, implement an interface and handle the logic using interface implementations.
Would love to be able to handle that logic in my VM rather than using a behavior
Hello.
I have built a perfectly functional usercontrol, which includes a radrichtextbox with htmldataprovider (pretty nice, pretty easy, works like a charm).
Now I need to expose it to some VB6 client :-/, so as I have done before, I just host it in a winforms form, add some COM interfaces, and it should work all the same (been there, done that...)
Well, no...
It keeps giving me this error:
Value cannot be null. Parameter name: formatProvider
at Telerik.Windows.Documents.FormatProviders.DataProviderBase..ctor(ITextBasedDocumentFormatProvider formatProvider, DependencyProperty stringProperty)
at Telerik.Windows.Documents.FormatProviders.Html.HtmlDataProvider..ctor()
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
I tried:
<telerik:HtmlFormatProvider x:Key="HtmlFormatProvider" />
<telerik:HtmlDataProvider RichTextBox="{Binding ElementName=SocialHistoriesHtml}" FormatProvider="{StaticResource HtmlFormatProvider}" Html="{Binding HTML}" />I'm using RadGridView to show certain properties of a list of elements.
This works as expected as long as all elements in the list have all properties the columns bind to.
But once only one element does not have a property a column binds to the whole columns fails to correctly support sorting and filtering.
When sorting no element is shown at all and the filter dialog does not show any values. See attached screenshots.
This still happens even though a FallbackValue of the right type is provided in the Binding.
Is there a way to make this work? Sadly I can not avoid having some elements that do not implement all properties, so a failing binding most be handled in a better way.
My Xaml:
<Window x:Class="WpfTestApplication.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:telerikG="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:telerikD="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" Title="MainWindow" Height="200" Width="300"> <Grid> <telerikG:RadGridView ItemsSource="{Binding Elements}" AutoGenerateColumns="False"> <telerikG:RadGridView.Columns> <telerikG:GridViewDataColumn Header="cost" DataMemberBinding="{Binding cost, FallbackValue=0.0}"/> </telerikG:RadGridView.Columns> </telerikG:RadGridView> </Grid></Window>So you guys flag projects by XAML and no XAML so when an upgrade is done you know which files to use.
How can one switch a project from one to the other though so the upgrade extension is aware which one you are trying to do.
Specifically I have two projects that are flagged incorrectly.
the upgrade occurs and the reference to the theme is removed.
I then have to manually find the themes folder and add a reference.
I have been trying to create a custom filter control and I am running into issues.
It seems that even when writing a custom filter, the decision of whether a row will be filtered in or out is based on one or more FilterDescriptors, which basically only take in the name of the data field, one of a set of predefined operators, and the value to compare the value in the data field to.
Is there any way to define our own logic for whether a row will pass the filter? Any way to write in a function that will take in the row item, and let us create more complex logic than what is given out-of-the-box?


Hi,
Can I rotate a group of some RadDiagramShape?
My problem is when I put beside more shapes and I group theme. Afterthat I would rotate a group to 90°
I have multiple charts that share the same x-axis and have the trackballs grouped using chartviewutilities.cs from one of your examples. Everything works as expected when there is no zoom. However as soon as I throw a grouped zoom and pan into the mix the trackballs get out of sync. The further I zoom the more out of sync they become. How can i resolve this?
Here is my charts xaml:
<telerik:RadCartesianChart Margin="0,17,0,5" TrackBallInfoStyle="{StaticResource trackBallInfoStyle}" TrackBallLineStyle="{StaticResource trackBallLineStyle}" utils:ChartViewUtilities.ChartAlignmentGroup="g1" UseLayoutRounding="True" FontFamily="{DynamicResource FontFamilyRoboto}" Zoom="{Binding Zoom, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" PanOffset="{Binding PanOffset, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" MaxZoom="10000,10000">
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis SmartLabelsMode="SmartStep" Title="Strip Length (meters)" MajorTickStyle="{StaticResource tickStyle}"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis SmartLabelsMode="SmartStepAndRange" MajorTickStyle="{StaticResource tickStyle}"/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="Y" MajorYLineDashArray="3,4"/>
</telerik:RadCartesianChart.Grid>
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" PanMode="Horizontal" />
<telerik:ChartTrackBallBehavior ShowIntersectionPoints="True"
utils:ChartViewUtilities.ShouldPositionTrackBallCloseToDataPoint="False"
utils:ChartViewUtilities.TrackBallGroup="g1" TrackInfoUpdated="ChartTrackBallBehavior_TrackInfoUpdated"/>
</telerik:RadCartesianChart.Behaviors>
<telerik:LineSeries x:Name="SteelDNALineSeries" CategoryBinding="Position"
ValueBinding="Value"
ItemsSource="{Binding Trace, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ParameterTraceControl}}}"
TrackBallTemplate="{StaticResource SteelDNATrackBallTemplate}" Stroke="{Binding RandomColor, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" StrokeThickness="1"
utils:ChartAnimationUtilities.CartesianAnimation="Rise"/>
</telerik:RadCartesianChart>
and attached are what happens...

<Grid.LayoutTransform> <ScaleTransform ScaleX="1.5" ScaleY="1.5" /></Grid.LayoutTransform><telerikDocking:RadDocking.CompassStyle> <Style TargetType="telerik:Compass"> <Setter Property="LayoutTransform"> <Setter.Value> <ScaleTransform ScaleX="1.5" ScaleY="1.5"/> </Setter.Value> </Setter> </Style></telerikDocking:RadDocking.CompassStyle><telerikDocking:RadDocking.RootCompassStyle> <Style TargetType="telerik:RootCompass"> <Setter Property="LayoutTransform"> <Setter.Value> <ScaleTransform ScaleX="1.5" ScaleY="1.5" /> </Setter.Value> </Setter> </Style></telerikDocking:RadDocking.RootCompassStyle><telerikDocking:RadDocking.VisualCueStyle> <Style TargetType="telerik:VisualCue"> <Setter Property="LayoutTransform"> <Setter.Value> <ScaleTransform ScaleX="1.5" ScaleY="1.5" /> </Setter.Value> </Setter> </Style></telerikDocking:RadDocking.VisualCueStyle>