Telerik Forums
UI for WPF Forum
1 answer
200 views

When I select multiple shapes in my RadDiagram and execute the Delete command, I expect two events to fire: 

RadDiagram.ItemsChanging and RadDiagram.ItemsChanged.

In each event, I expect e.OldItems to contain all shapes that are being deleted.

Instead, I get individual event: first ItemsChanging and then ItemsChanged for every individual item in my selection. e.OldItems contains a single object every time.

Is this expected behavior? If not, what might I be doing wrong? Getting the shapes in individual events is bad because it doesn't allow me to prioritize the order in which I operate on each shapes. And because ItemsChanging and ItemsChanged fire for each shape until the next one happens, I can't easily cache all the changing items and THEN operate on the whole collection, either.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2017
1 answer
247 views

HI ,

I am using property grid with multiple sections. I would like to sort the categories with my preference (not alphabetically or not default). How can i do it?

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2017
1 answer
168 views

Hi,

I would like to define shifts which would start from noon (12pm-12pm), so basically 1 shift would be part in one day, and part in outer day, (minimum shift/appointment duration should be 24h) but would also like to preserve regular day header above it. Please take a look at the screenshot attached. It explains it much better than I could explain it. Is it possible to achieve something like this?

 

Thank you for you help!

Martin Ivanov
Telerik team
 answered on 04 Jul 2017
2 answers
172 views

Hello, please tell me what I'm doing wrong or is this a bug in the system? When I load a diagram, and then save, the save goes with the changes.

                 RadDiagram diagram = new RadDiagram();
                    diagram.Clear();
                    diagram.Load(Globals.Project.ComponentPlacements.Logic);
                    Globals.Project.ComponentPlacements.Logic = diagram.Save().

 

Svyatoslav
Top achievements
Rank 1
 answered on 04 Jul 2017
9 answers
139 views

I'm handling the ColumnWidthChanged event and saving the width of each column in a config file for reuse the next time my application is run. If I drag the column to a different size the NewWidth property is the actual width I've chosen. If I double-click the column edge to auto-size it, the NewWidth property is set to "Auto" and the value is "1".

Why can't I see what the actual new width is? My gut says this is counter-intuitive, but Telerik generally has a good reason for this sort of thing.

Any input as to how I can get the actual width so I can save it?

Yoan
Telerik team
 answered on 04 Jul 2017
5 answers
291 views

Hello,

 

I have an issue with snap to grid and resizing. Consider SnapX and Snap Y  is set to 20 and Grid Cell Size is set to 20 as well. Then add a rectangle Shape and set its position to 23 and 23 while snap to grid is enabled try to enlarge the shape from bottom right corner. The shape width and height will increment by 20 so the width and height become 43 and 43 instead of 40 and 40 which are the grid lines position.

Am I missing something here ?

Thanks,

Bruno
Top achievements
Rank 1
 answered on 03 Jul 2017
2 answers
129 views
Bug: RadTabControl does not scroll only a single item but the entire collection when ScrollMode="Item" and TabStripPlacement="Left". Is there a known workaround for this?
Dinko | Tech Support Engineer
Telerik team
 answered on 03 Jul 2017
2 answers
165 views
I have a RadHeatMap that takes about 10 seconds to render  700,000 data points.  I have a RadBusyIndicator to show that the data is being loaded.  Is there an event or some way to tell when the data is finished binding and the heatmap has finished rendering so i can change the busy property of the RadBusyIndicator?  
Rihana
Top achievements
Rank 1
 answered on 03 Jul 2017
1 answer
75 views

Hi,

 

I would like to personnalize the ContainerShape but if i change Template property, all events (resize, connector) disappear.

Do you have a example of a full personnalized ContainerShape ?

Thanks.

This is my code

<Setter Property="Template">
    <Setter.Value>
        <ControlTemplate>
            <Grid Background="DimGray">
                <Grid.RowDefinitions>
                    <RowDefinition Height="35"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="0">
                    <TextBlock x:Name="EntityContent" Text="test" Width="250" Height="35" Foreground="White" />
                </StackPanel>
                <Grid Grid.Row="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="40*" />
                        <ColumnDefinition Width="20*" />
                        <ColumnDefinition Width="40*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Vertical" x:Name="EntityDataIn" Grid.Column="0"></StackPanel>
                    <StackPanel Orientation="Vertical" x:Name="EntityDataOut" Grid.Column="2"></StackPanel>
                </Grid>
            </Grid>
        </ControlTemplate>
    </Setter.Value>
</Setter>
Dinko | Tech Support Engineer
Telerik team
 answered on 03 Jul 2017
1 answer
297 views

Hi,

 

I try to bind Stroke, strokeThickness and StrokeDashArray properties. I try manually and with ItemInformationAdorner.AdditionalContent but that's doesn't work.

Can you help me pls ?

This is my code

<telerik:RadDiagram Position="0,0" x:Name="tlrDiagram" ContainerShapeStyle="{StaticResource entityStyle}">
                <telerik:EventToCommandBehavior.EventBindings>
                    <telerik:EventBinding Command="{Binding ItemsChangingCommand}" EventName="ItemsChanging" RaiseOnHandledEvents="True" PassEventArgsToCommand="True" />
                </telerik:EventToCommandBehavior.EventBindings>
                <telerik:RadDiagramContainerShape x:Name="src" Width="50" Height="50" Position="10,10" BorderThickness="0"   StrokeThickness="3" StrokeDashArray="1" Stroke="Red" />
                <telerik:RadDiagramContainerShape x:Name="dest"  Width="50" Height="50" Position="150,150" Stroke="blue" StrokeThickness="3" StrokeDashArray="1" />
                <telerik:RadDiagramConnection Source="{Binding ElementName=src}" Target="{Binding ElementName=dest}" Stroke="GreenYellow" StrokeThickness="3" StrokeDashArray="1" />
                <primitives:ItemInformationAdorner.AdditionalContent>
                    <telerik:SettingsPane Diagram="{Binding ElementName=tlrDiagram}" />
                </primitives:ItemInformationAdorner.AdditionalContent>
            </telerik:RadDiagram>

 

 

 

<Style x:Key="entityStyle" TargetType="telerik:RadDiagramContainerShape">
       <Setter Property="IsEditable" Value="True" />
       <Setter Property="IsResizingEnabled" Value="False" />
       <Setter Property="HorizontalContentAlignment" Value="Center" />
       <Setter Property="VerticalContentAlignment" Value="Center" />
       <Setter Property="IsConnectorsManipulationEnabled" Value="False" />
       <Setter Property="IsCollapsible" Value="false" />
       <Setter Property="Padding" Value="0" />
       <Setter Property="IsCollapsed" Value="false" />
       <Setter Property="Background" Value="DimGray" />
       <Setter Property="Foreground" Value="Black" />
       <Setter Property="BorderBrush" Value="White" />
       <Setter Property="BorderThickness" Value="1" />
       <Setter Property="FontFamily" Value="Segoe UI" />
       <Setter Property="Width" Value="250" />
       <Setter Property="Margin" Value="0" />
       <Setter Property="Effect">
           <Setter.Value>
               <DropShadowEffect BlurRadius="15"
                                 Direction="-90"
                                 ShadowDepth="2"
                                 RenderingBias="Quality"/>
           </Setter.Value>
       </Setter>
   </Style>

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Jul 2017
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?