Hi!
I have been using the RadDiagram for a few weeks now and came across a problem when I tried to align the content on the connection between two shapes. I have defined a template for the RadDiagramConnection and the RouteConnections is set to True on the diagram. On the connection an image is shown that I can not align vertically. I tried using text instead of an image but result is the same. What am I doing wrong?
Is there perhaps a way to define a template for connectors?
I have pasted below the code of both elements and the image of problem.
<Style TargetType="telerik:RadDiagram" >
<Setter Property="AllowCopy" Value="False" />
<Setter Property="AllowCut" Value="False" />
<Setter Property="AllowDelete" Value="False" />
<Setter Property="AllowPaste" Value="False" />
<Setter Property="IsConnectorsManipulationEnabled" Value="False" />
<Setter Property="IsInformationAdornerVisible" Value="False" />
<Setter Property="IsManipulationAdornerVisible" Value="True" />
<Setter Property="IsResizingEnabled" Value="False" />
<Setter Property="IsRotationEnabled" Value="False" />
<Setter Property="IsSnapToItemsEnabled" Value="False" />
<Setter Property="IsEditable" Value="False" />
<Setter Property="IsSnapToGridEnabled" Value="False" />
<Setter Property="ActiveTool" Value="PointerTool" />
<Setter Property="SelectionMode" Value="Extended" />
<Setter Property="IsBackgroundSurfaceVisible" Value="True" />
<Setter Property="RectSelectionMode" Value="Partial" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="MinWidth" Value="500" />
<Setter Property="RouteConnections" Value="True" />
<Setter Property="telerik:DiagramSurface.IsVirtualizing" Value="False" />
<Setter Property="telerik:DiagramAnimations.IsPanAnimationEnabled" Value="False" />
<Setter Property="telerik:DiagramAnimations.IsZoomAnimationEnabled" Value="False" />
<Setter Property="telerik:DiagramAnimations.AnimationDuration" Value="0.2" />
<Setter Property="primitives:BackgroundPageGrid.IsGridVisible" Value="False" />
</Style>
<Style TargetType="telerik:RadDiagramConnection" >
<Setter Property="telerik:RadDiagramConnection.IsAutoUpdateSuppressed" Value="True" />
<Setter Property="Visibility" Value="{Binding Visibility, Mode=TwoWay}" />
<Setter Property="ConnectionType" Value="Polyline" />
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="TargetCapType" Value="Arrow1Filled" />
<Setter Property="Stroke" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="VerticalContentAlignment" Value="Top"></Setter>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Margin="0,0,0,0" Orientation="Vertical">
<Image Source="{Binding Converter={StaticResource imageSourceBasedOnNodeType}}" Width="30" Height="30" Margin="10 10 10 10"
ToolTip="{Binding Path=.Target.TransformationTypeDesc}"
Visibility="{Binding Converter={StaticResource imageVisibilityBasedOnType}}"></Image>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
Hello,
Is there some easy way to have the sticky tooltip behaviour describe in this link for asp.net http://docs.telerik.com/devtools/aspnet-ajax/controls/tooltip/getting-started/sticky-tooltips, but in WPF?
Thanks,
A.
Hi,
In my project,a workbook contains several worksheets .I want to programmatically change the sheet tab color under the sheet editor footer so that user can easily
distinguish them from each other.
I am coding using WPF + Telerik RadGridView, Anytime the WPF application running, I could input Chinese under Win 10, but I couldn't input Chinese under XP/Win 7.
I understand the Telerik.WinControls.UI.RadGridView has property ImeMode, I can change ImeMode using below code:
But how can I get the same result with Telerik.Windows.Controls.RadGridView using below code:
Thanks for any suggestion or samples?
Hello!
I am trying to retrieve the content of the PivotGrid to CSV format and I am using CsvFormatProvider.Export method for that.
The PivotGrid is populated using LocalDataSourceProvider that is bounded to an ObservableCollection.
The problem I am experiencing is that after updating the collection, the pivot table doesn't immediately reflect the new data, and therefore I can't manipulate the grid's content. I was trying to find an event that is raised after the Pivot Table is updated (I guess then the IsBusy property of PivotGrid is false), but couldn't find one.
I have tried "Loaded" and "Initialized" events of Pivot Table but none of them are raised after the Table is updated.
So, can you please tell me how can I know when is the new data seen in the Pivot Table?
I want to be able to retrieve the content of the grid in CSV format right after updating the ObservableCollection of the LocalDataSourceProvider.
Thank you in advance,
Sincerely,
Alexander
Hi,
As "_" is used as access key i am not able to see underscore in tab name.
In my application at few places i have used <TextBlock> instead of <telerik> and that worked at where i have to display Label in GUI window.
Now in application i have places where tabs are launching whenever mouse double click event is triggered.
I have test.xaml.cs in which event handler is written for mouse double click and test.xaml file from which input is given to this event handler.Also in event handler after mapping properties like Name , header , Tag etc. of RadPane ; it is serialized to RadDocking like :
testContent.SetValue(RadDocking.SerializationTagProperty, tabname.TabInputVal);
testContent.Content = new Home(tabname.TabInputVal);
MainWindow.MainWindowGlobal.MainWindow.radPaneGroupMenu.AddItem(testContent, DockPosition.Center);
I don't wnna use logic of using double underscore in code. Please let me know what are the other ways which i can use to display underscore in Tab Name!!
Thank you in advance.
Hi,
I am using a RadCartesian Chart where dynamically I want to use either Point Series or Spline Series. One at at time only. But I am not able to set they styles for both the type of series. How do I achieve this. Both are using Horizontal Categprical Axis and vertical Linear Axis. Please help me.
Hello,
This is using the Offcie2013 theme. I don't check whether the problem is the same with other themes.
I have a grid view column containing a date and the date is displayed with a custom DataFormatString: "dd-MMM-yyyy".
As soon as I use the search function, the format of the date returns to the default format.
How can we modify the look of the "drop shadow" that appears on the schedule view when a valid drop item is held over it (but the drop hasn't occurred yet)? For example, how is the drop shadow's background color defined? Also, can we control the display of time in the shadow (eliminate it or change the text color)?
I know that "drop shadow" probably isn't the proper term. I've attached an image with arrows pointing to what I'm calling the "drop shadow".
Thanks!