Telerik Forums
UI for WPF Forum
1 answer
384 views

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>

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Feb 2016
1 answer
169 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Feb 2016
1 answer
267 views

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.

Tanya
Telerik team
 answered on 25 Feb 2016
1 answer
203 views
Hi,

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:

  • myRadGridView.ImeMode = System.Windows.Forms.ImeMode.NoControl;

 

But how can I get the same result with Telerik.Windows.Controls.RadGridView using below code:

  • Telerik.Windows.Controls.RadGridView.XXX

Thanks for any suggestion or samples?

Maya
Telerik team
 answered on 25 Feb 2016
3 answers
183 views

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

Polya
Telerik team
 answered on 25 Feb 2016
14 answers
1.1K+ views

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.

 

Nasko
Telerik team
 answered on 25 Feb 2016
5 answers
281 views

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.

Shilpa
Top achievements
Rank 1
 answered on 25 Feb 2016
4 answers
100 views

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.

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Feb 2016
2 answers
157 views

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!
Tim
Top achievements
Rank 1
 answered on 24 Feb 2016
1 answer
396 views

I am trying to set the LabelFormat on a RadHorizontalDataAxis, but everything I try turns out to be in the wrong format.

    <telerik:RadHorizontalDataAxis  Minimum="-30"  Maximum="50" LabelsVisibility="FirstLastAndOriginValueOnly" />

I want the labels to display as  " -30%   0%    50% "

I have tried setting the string in xaml, and in the loaded event (a binding won't work for me because of where it is in the visual tree)

LabelFormat = "{0}%" - invalid format

LabelFormat = "/{0/}/%"- invalid format

LabelFormat = "P" - applies a calculation "-300.000%  0.000% 500.000%" which I could work around, if there is a way to hide the decimals?

 

Can anyone help me out? None the formatting examples ever seem to show how to set stringformats in xaml with the proper characters escapes

 

 

Peshito
Telerik team
 answered on 24 Feb 2016
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?