My diagram size is fixed.
When the items is many(over 100 or more), then i layout the diagram
SugiyamaSettings settings = new SugiyamaSettings()
{
VerticalDistance = 10d,
HorizontalDistance = 5d,
};
transDiagram.Layout(LayoutType.Sugiyama, settings);
some items is out of the diagram
How to let the items inner the diagram when items is horizontal or vertical overflow
Hi,
I created a behavior to scroll to the selected item in a RadGridView when the selected item is set programmatically. Basically, I used Dan's answer in this post: https://www.telerik.com/forums/scroll-to-row-when-programmatically-setting-selected-item.
This works fine when applying the behavior directly to the grid as in following example
<telerik:RadGridView Grid.Column="2" ItemsSource="{Binding StockSvtCollectionView}" SelectedItem="{Binding CurrentModel}" GroupRenderMode="Flat" AutoGenerateColumns="False" IsReadOnly="True" ShowGroupFooters="True" ShowColumnFooters="True" AutoExpandGroups="True" Margin="0,-10,0,10">
<i:Interaction.Behaviors>
<uct:RadGridViewScrollSelectedItemIntoViewBehavior/>
</i:Interaction.Behaviors>
Now I'm looking for an easy way to apply this behvior to all my GridViews. I tried using a style:
<Style x:Key="DefaultTelerikGridView" TargetType="{x:Type telerik:RadGridView}">
<Style.Setters>
<Setter Property="i:Interaction.Behaviors">
<Setter.Value>
<uct:RadGridViewScrollSelectedItemIntoViewBehavior/>
</Setter.Value>
</Setter>
<Setter Property="telerik:StyleManager.Theme" Value="{StaticResource DefaultTelerikApplicationTheme}"/>
</Style.Setters>
</Style>
<Style TargetType="{x:Type telerik:RadGridView}" BasedOn="{StaticResource DefaultTelerikGridView}"/>
But this generates this error:
The property "Behaviors" is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property "Behaviors". For attached properties, the declaring type must provide static "GetBehaviors" and "SetBehaviors"
Any help would be much appreciated.
Hi..
I have an app, that have been using the maps perfectly for several years.
Now, I get an Empty Map - No Roads nothing!
I'm using the BING provider.
Any ideas? Help!!
Hi,
How can I use the ExportToImage extension with define the size (Width and Height) of the image. I do not wish to change the size of my framework element (RadCartesianChart ) in so that the image generated will be bigger in size.
This is the line of code to export to image:
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(CartesianChart, Path.GetFullPath(fileName), new PngBitmapEncoder());
Thanks in advanced.
Regards,
CS
When call Layout with SugiyamaSettings ,I wish to display the shapes from right to left ,root node dock at the right side
SugiyamaSettings settings = new SugiyamaSettings()
{
VerticalDistance = 10d,
HorizontalDistance = 5d,
IgnoreInvisible = true,
ComponentsGridWidth = transDiagram.ActualWidth,
Orientation = Telerik.Windows.Diagrams.Core.Orientation.Vertical,
};
transDiagram.Layout(layoutType, settings);
how to do?
when I copy multi lines and paste into column filtering textbox,
grid just filter the first line and omit the other lines.
for example, I wanna filter the following lines:
"Ali
Vahid"
grid just filter Ali.
there is any way to filter multi lines?
Thanks.