Telerik Forums
UI for WPF Forum
3 answers
178 views
Hi,

I'm on .Net 4.0 and I use Telerik V2014.1.331.40 and I would like to know how I can access the RadWatermarkTextBox inside the control? For my scenario, I need to do some manipulation on the text inside the RadWatermarkTextBox.

Thank's
Alain
Rosen Vladimirov
Telerik team
 answered on 10 Jun 2014
3 answers
125 views
We are using the OrgChartDiagram to show the organization hierarchy in our application. To export the diagram, we used the RadGeometryDropDownButton control with two options PNG and BMP.  We are using the telerik:DiagramCommands.Export command is used for that purpose. Sometimes, the options are disabled when we go to other page and back. We need to reload the page to get that option enabled. When the export command remove from the code, the options are enabled.

Please help us to resolve.

See below the code for your reference. ElementName in Command target is the org chart control name.

<telerik:RadGeometryDropDownButton Grid.Column="2" Content="Export" DropDownHeight="80"  Style="{StaticResource RadGeometryDropDownButtonStyle}"
                                                               DropDownWidth="144"  Margin="15 0 0 0" HorizontalAlignment="Center" VerticalAlignment="Center"
                                                               Geometry="M11,0L18,7L11,7zM0,0L10,0L10,7L10,8L18,8L18,12L8.88893,12L8.88893,9L3.82715,14L8.88893,19L8.88893,16L18,16L18,21L0,21z"  Height="56" Width="42" >
                                <telerik:RadGeometryDropDownButton.DropDownContent>
                                    <StackPanel Margin="10">
                                        <telerik:RadGeometryButton Content="Export To PNG" Command="telerik:DiagramCommands.Export" CommandParameter="Png"
                                                CommandTarget="{Binding ElementName=diagram}" Style="{StaticResource GeometryButtonMenuItemStyle}"
                                                Geometry="M6.7093377,5.0820007 C10.505837,5.0813236 12.205385,8.5835428 13.709369,8.4989958 C15.616847,8.3917685 16.999527,6.8087606 16.999527,6.8087606 L17.000025,13.080002 L3.0000243,13.080002 L3.0000243,7.9753876 C3.0000243,7.9753876 4.842936,5.0823336 6.7093377,5.0820007 z M1.9999999,2.0000048 L1.9999999,13.999995 L18,13.999995 L18,2.0000048 z M1.1920929E-06,0 L20,0 L20,16 L0,16 z" />
                                        <telerik:RadGeometryButton Content="Export To BMP" Command="telerik:DiagramCommands.Export" CommandParameter="Bmp"
                                                                   CommandTarget="{Binding ElementName=diagram}" Style="{StaticResource GeometryButtonMenuItemStyle}"
                                                                   Geometry="M6.7093377,5.0820007 C10.505837,5.0813236 12.205385,8.5835428 13.709369,8.4989958 C15.616847,8.3917685 16.999527,6.8087606 16.999527,6.8087606 L17.000025,13.080002 L3.0000243,13.080002 L3.0000243,7.9753876 C3.0000243,7.9753876 4.842936,5.0823336 6.7093377,5.0820007 z M1.9999999,2.0000048 L1.9999999,13.999995 L18,13.999995 L18,2.0000048 z M1.1920929E-06,0 L20,0 L20,16 L0,16 z" />
                                    </StackPanel>
                                </telerik:RadGeometryDropDownButton.DropDownContent>
                            </telerik:RadGeometryDropDownButton>

<local:OrgChartDiagram x:Name="diagram" GraphSource="{Binding GraphSource}"  IsBackgroundSurfaceVisible="False" Margin="10"
                           ScrollViewer.HorizontalScrollBarVisibility="Auto"
                           ScrollViewer.VerticalScrollBarVisibility="Auto"                                              
                                          IsRotationEnabled="False"                                           
                           ShapeStyle="{StaticResource OrgChartShapeStyle}" />


<Style x:Key="GeometryButtonMenuItemStyle" TargetType="telerik:RadGeometryButton">
 
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Width" Value="224" />
        <Setter Property="Height" Value="30" />
        <Setter Property="FontSize" Value="12" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Padding" Value="6 0" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadGeometryButton">
                    <Border x:Name="RootBorder" Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}" >
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                                Storyboard.TargetName="RootBorder"
                                                Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MetroGray}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <StackPanel Orientation="Horizontal" Margin="6"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                            <Grid Visibility="{TemplateBinding GeometryVisibility}" Width="20" Height="20" >
                                <Viewbox Stretch="Uniform">
                                    <Path x:Name="Path" Stretch="None" HorizontalAlignment="Center"
                                            VerticalAlignment="Center" Data="{TemplateBinding Geometry}"
                                            Fill="{StaticResource PathFill}" />
                                </Viewbox>
                            </Grid>
                            <ContentControl x:Name="Content" Grid.Column="1"
                                    IsTabStop="False" Content="{TemplateBinding Content}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    Margin="{TemplateBinding Padding}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
 
 <Style TargetType="telerik:RadGeometryDropDownButton" x:Key="RadGeometryDropDownButtonStyle">
        <Setter Property="Background" Value="White" />
        <Setter Property="Foreground" Value="#333333" />
        <Setter Property="BorderBrush" Value="#64003d" />
        <Setter Property="BorderThickness" Value="2" />
 
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource PathFill}" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Padding" Value="3 0 3 3" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Margin" Value="0 4 0 0" />
        <Setter Property="DropDownPopupVerticalOffset" Value="-6" />
        <Setter Property="IsOpen" Value="false" />
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="38"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="38"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadGeometryDropDownButton" >
                    <Grid Background="{TemplateBinding Background}" >
                        <!--<VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed" />
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused" />
                                <VisualState x:Name="Focused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>-->
                        <Grid HorizontalAlignment="Stretch">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid Background="Transparent">
                                <Ellipse x:Name="Ellipse" Stroke="{TemplateBinding BorderBrush}"
                                        Fill="{TemplateBinding Background}"
                                        Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                        Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                        StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                        Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}" />
                                <Path x:Name="Path" Data="{TemplateBinding Geometry}"
                                        Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                        Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                        HorizontalAlignment="Center" VerticalAlignment="Center" />
                            </Grid>
                            <ContentControl x:Name="Content" Grid.Row="1"
                                    FontWeight="SemiBold" Margin="{TemplateBinding Padding}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="Center" />
                        </Grid>
                        <Popup x:Name="DropDownPopup" VerticalOffset="{TemplateBinding DropDownPopupVerticalOffset}"
                                HorizontalOffset="{TemplateBinding DropDownPopupHorizontalOffset}">
                            <Grid>
                                <Grid.Effect>
                                    <DropShadowEffect ShadowDepth="2" BlurRadius="6" Color="#FD000000" Opacity="0.6" />
                                </Grid.Effect>
                                <Path HorizontalAlignment="Center" VerticalAlignment="Top"
                                        Data="M9,0.5 L17.5,7.5 L0.5,7.5 z" Fill="White" Stretch="Fill"
                                        Stroke="{StaticResource Stroke}" UseLayoutRounding="False"></Path>
                                <Rectangle VerticalAlignment="Top" Height="1" Canvas.ZIndex="1" Width="14" Fill="White"
                                        HorizontalAlignment="Center" Margin="0 6 0 0" />
                                <Border x:Name="DropDownPopupBorder" Margin="2 6 2 2" BorderBrush="#FFD6D4D4"
                                        Background="#FFFFFFFF" BorderThickness="1" CornerRadius="0" MinWidth="3"
                                        MinHeight="3" Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}">
                                    <ContentControl x:Name="DropDownPopupContent"
                                            Content="{TemplateBinding DropDownContent}"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik:RadGeometryButton" x:Key="RadGeometryButtonStyle2">
        <Setter Property="Background" Value="White" />
        <Setter Property="Foreground" Value="#333333" />
        <Setter Property="BorderBrush" Value="#64003d" />
        <Setter Property="BorderThickness" Value="2" />
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource PathFill}" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="Padding" Value="3 0 3 3" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Margin" Value="0 4 0 0" />
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="38"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="38"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadGeometryButton" >
                    <Grid Background="{TemplateBinding Background}" >
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content"
                                                Storyboard.TargetProperty="Opacity" To="0.5" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed" />
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Ellipse"
                                                Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Path"
                                                Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Content"
                                            Storyboard.TargetProperty="Foreground"  >
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AccentBrush}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused" />
                                <VisualState x:Name="Focused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid HorizontalAlignment="Stretch">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid Background="Transparent">
                                <Ellipse x:Name="Ellipse" Stroke="{TemplateBinding BorderBrush}"
                                        Fill="{TemplateBinding Background}"
                                        Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                        Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                        StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                        Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}" />
                                <Path x:Name="Path" Data="{TemplateBinding Geometry}"
                                        Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                        Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                        HorizontalAlignment="Center" VerticalAlignment="Center" />
                            </Grid>
                            <ContentControl x:Name="Content" Grid.Row="1"
                                    FontWeight="SemiBold" Margin="{TemplateBinding Padding}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="Center" />
                        </Grid>
                        
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
Zarko
Telerik team
 answered on 10 Jun 2014
3 answers
931 views
Hello!

I am trying to use RadListBox and I have a scenario when I need to prevent selection change in list box (for example user wants to save change he/she made before navigating away from currently selected item). How can I accomplish this?
Kalin
Telerik team
 answered on 10 Jun 2014
6 answers
348 views

How can I detect if user has clicked on a polyline that has been added to the map?  I have tried the following, but the new mouse event does not fire when the user clicks on the polyline on the map:


Me.polylineLayer.Items.Add(pline)

          

pline.AddHandler(MouseLeftButtonDownEvent, New MouseButtonEventHandler(AddressOf pline_MouseLeftButtonDown))


Andrey
Telerik team
 answered on 10 Jun 2014
1 answer
149 views
Hi,

we start our application out of a business-software. One parameter is the path to an existing diagram, so we
can open the application and load the diagram out of the xml-file. So far so good.

But if we do so, the void Diagram_ShapeDeserialized will not fired. The result is the wright diagram, but without
any custom propertie :-(

How can we solve this problem?

Thanks a lot
Best Regards
Rene
Milena
Telerik team
 answered on 10 Jun 2014
1 answer
95 views
Hi All

In the "how to display hierarchical date" example, where does this line go in the XAML?

XAML
Me.radPanelBar.ItemsSource = MyViewModel.GenerateItems() 
Martin Ivanov
Telerik team
 answered on 10 Jun 2014
1 answer
109 views
Greetings,

Guys can you please provide a full implementation example of FunnelControl3D for WPF, I havent been able to find an example of this control


Thanks

Best Wishes!
Martin Ivanov
Telerik team
 answered on 10 Jun 2014
2 answers
111 views
Hi,

I'm using a RadGanttView control and need some help with the next problem: I have created a CustomResizeBehavior class that inherits SchedulingResizeBehavior class to customize a resizing behavior. I want to deny the resizing of some gantt tasks. So I need to get the task that is resized on the GanttChart and override CanResize method in some way. More particular: I have a couple of classes that inherit IGanttTask, and for some of them I need to restrict resizing. That's why I need to have an access to the gantt task in the CanResize method. Is there any way to get it?


Thank you,
Natalia  Novosad
Natalia
Top achievements
Rank 1
 answered on 10 Jun 2014
1 answer
176 views
When I expand the first time a node in treeview I get this warning: System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.;...

<telerik:RadTreeView >
            <telerik:RadTreeViewItem Header="Sport Categories">
                <telerik:RadTreeViewItem Header="Football">
                    <telerik:RadTreeViewItem Header="Futsal"/>
                    <telerik:RadTreeViewItem Header="Soccer"/>
                </telerik:RadTreeViewItem>
                <telerik:RadTreeViewItem Header="Tennis"/>
                <telerik:RadTreeViewItem Header="Cycling"/>
            </telerik:RadTreeViewItem>
        </telerik:RadTreeView>

Martin Ivanov
Telerik team
 answered on 10 Jun 2014
2 answers
149 views
I've started a new thread becouse that question can be interested to others members of the comunity. The exThread is: 
http://www.telerik.com/forums/timeline-group-sorting
Now my question about group height of groups in timeline control.
I have 3 groups (pic1) and i've got TimelineGroupPeriodControl instances (MainTimeline is my instance of radtimeline):

                var e = MainTimeline.ChildrenOfType<TimelineGroupPeriodControl>().ToList();
                e.ForEach(control =>
                {
                    var str = control.ActualHeight.ToString(CultureInfo.InvariantCulture);
                    builder.AppendLine(str);
                });
                MessageBox.Show(builder.ToString());

When the control is in state such as pic1 this code returns me result: 15, 15, 15;
When the items intersecs such as pic2 this code return me 15, 15, 15 too.
But the actual height of period groups is differnt in this 2 cases. How can I get the actualHeight of group. And groupName (скл... in my case) too.
Thanks!
nd one more qustion. With the new version of teleik wpf cotrols (2014) the radtimeline throws an exception in XAML visual designer. The stack trace is:

XamlParseException: TargetType "RadSlider" is not match the type of element "TimelineScrollBar".

 в System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
   в System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
   в System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   в System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
   в System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   в System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   в System.Windows.FrameworkElement.ApplyTemplate()
   в System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   в System.Windows.UIElement.Measure(Size availableSize)
   в System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   в System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   в System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   в System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   в System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   в System.Windows.UIElement.Measure(Size availableSize)
   в MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   в System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   в System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   в System.Windows.UIElement.Measure(Size availableSize)
   в System.Windows.Controls.Border.MeasureOverride(Size constraint)
   в System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   в System.Windows.UIElement.Measure(Size availableSize)
   в System.Windows.Controls.Control.MeasureOverride(Size constraint)
   в System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   в System.Windows.UIElement.Measure(Size availableSize)


ilusha
Top achievements
Rank 1
 answered on 10 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?