Telerik Forums
UI for WPF Forum
4 answers
252 views

Hi There,

Can anyone provide an example of how to catch connection 'drag & drop' events in a RadDiagram? I've bound all the connection related DnD events to a property handler but it get a hits very sporadically when moving the connections from one shape to another. The code is shown below. No doubt I'm doing something silly but I can't find any example anywhere in the docs. Any suggestions on how to get this to work are greatly appreciated.

 

Regards,

Eric G.

 

       // create some event handlers

       private void EdgeDragEnter(object sender, EventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("drag enter");
        }

        .....

       // create some connections and wire them to the handlers

     var connection = new RadDiagramConnection() { Source = edgePair.Key, Target = targetInfo.node, ... TargetCapType=CapType.Arrow2Filled};
                connection.DragEnter += EdgeDragEnter;
                connection.DragLeave += EdgeDragEnter;
                connection.Drop += EdgeDragEnter;
                connection.BeginEdit += EdgeDragEnter;
                connection.EndEdit += EdgeDragEnter;
                connection.GotFocus += EdgeDragEnter;
                connection.ManipulationCompleted += EdgeDragEnter;

Martin Ivanov
Telerik team
 answered on 12 Sep 2019
2 answers
64 views

Hi,

Some of my grid cell values are unusually long. These are anomalies, so I don't want to make the affected columns wide enough to accommodate these anomalies. Instead, I'd like to use a tooltip to merely show the entire cell's value when its contents are cut off. How can I achieve this?

Wayne

n/a
Top achievements
Rank 1
 answered on 12 Sep 2019
1 answer
665 views

I am creating a Windows Service that needs to show status alerts to the user.  So, I'll put an icon in the system tray and post alerts when events happen.  Do you have a working example as to how this can be done?

Thanks for your help,

Joel

Martin Ivanov
Telerik team
 answered on 11 Sep 2019
7 answers
424 views
i want to set the center location of an ellipsedata or mapellipse view. like setting a hotspot in its middle. how is it possible. currently the location of mapellipseview and ellipsedata refer to its top left corners location.
actually my complete need is to click on somewhere on the map. draw an ellipse on that location(centered)  and as i move the mouse back and forth the radius of the ellipse gets enlarged/shortend until i again click the mouse and the ellipse is persisted in its last shape. the radius of the ellipse is the length between the first click and the second click. i must not that i cannot use the Ellipse because i need the radius to be in kilometers so that it changes with zoom changing.
Ola
Top achievements
Rank 1
 answered on 11 Sep 2019
1 answer
61 views
Is there an easy way to hide the $type Property of an ExpandoObject in the PropertyGrid? See attached screenshot.
Vladimir Stoyanov
Telerik team
 answered on 11 Sep 2019
3 answers
269 views

Hello

I use c# wpf telerik RadGridView and I have problem with Pasting. RadGridView`s cells contain my special custom type:

class Place

{

   int id;

   string name;

}

I need to get source cell in PastingCellClipboardContent to read Place.id:

private void radGridView1_PastingCellClipboardContent(object sender, GridViewCellClipboardEventArgs e){

if (e.Cell.Column.UniqueName == "Place"){

   //here i need source cell

}

How can I get it?

Thanks

Martin Ivanov
Telerik team
 answered on 11 Sep 2019
2 answers
230 views

Hi,

I'm trying to use DesktopAlert to display a list of messages. This would only ever be a short list (1 to 3 messages).

I'm aware that I can attach the list to the Content property, and that if I do this, I must provide a custom ContentTemplate to display the list, but I'm not clear how to do this.

Wayne

n/a
Top achievements
Rank 1
 answered on 11 Sep 2019
2 answers
671 views

I need create a view, which shows the list of image thumbnails in the left and the selected image in the right just like AcrobatReader for PDF pages.

Which controls shall I use? Have you any example project?

Uli
Top achievements
Rank 1
Veteran
 answered on 10 Sep 2019
1 answer
94 views
Hi,

Is there any way to prevent the line of the graph from being cut when its curve is below the minimum?
I send an example.

Thank you.
Martin Ivanov
Telerik team
 answered on 10 Sep 2019
3 answers
184 views
Hello!

How can I change RadDiagramm appearance in PrintPreview dialog? I was try to make new instance of RadDiagram with custom styles, but it is does not work. PrintPreview is empty. Can you send example, which describe, how to print diagram with custom shape/link styles for printing puporses. Thank you.

void PrintClick(object sender, ItemClickEventArgs e)
        {
            var printPreviewWindow = new Window();
            var diagramForPrint = new RadDiagram();
            diagramForPrint.GraphSource = diagramm.GraphSource;
            diagramForPrint.Style = diagramm.Style;//here I will set some my PrintStyle
            var printPreview = new RadDiagramPrintPreview() { Diagram = diagramForPrint };
            printPreviewWindow.Content = printPreview;
            printPreviewWindow.ResizeMode = ResizeMode.NoResize;
            printPreviewWindow.Width = 800;
            printPreviewWindow.Height = 600;
            printPreviewWindow.ShowDialog();
        }
Martin Ivanov
Telerik team
 answered on 10 Sep 2019
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
FileDialogs
Book
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?