Telerik Forums
UI for WPF Forum
0 answers
113 views
We are using the Q2 2013 controls, the documentation states that the RadTimeline is in Telerik.Windows.Controls, however when trying to add one to a view intellisense can't find it and says RadTimeline does not exist in

http://schemas.telerik.com/2008/xaml/presentation.

Has the functionality moved to a new DLL?

EDIT: Found example where it is now in Telerik.Windows.Controls.DataVisualization.dll.

Steve

Steven
Top achievements
Rank 1
 asked on 25 Oct 2013
4 answers
354 views
Hello, I am making an application for work that involves using an OData service.

I am using the RadDataServiceDataSource control in conjunction with the RadDataFilter to manage data from the OData service such that the user can get the information they need without actually having to know how to compose an OData query string (the data is presented in a RadGridView).

The problem I am running into occurs when there are few to no filters in the query string (which are provided via the RadDataFilter on the UI). I appear to be getting a timeout exception, the following is a relevant line from the response message from the service: 

"Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding."

I have confirmed that the server is indeed responding and I have tried increasing the timeout on both the service directly and also on the RadDataServiceDataSource object in the XAML. Unfortunately this seems to have no effect at all. Whether an exception gets thrown or the operation is successful the service spins for the same amount of time. 

After a few hours on Google I found some folk who suggested that the following line that is added to the OData query string by default could be the culprit:

inlinecount=allpages

I cannot confirm whether or not this is true, but from what I understand this line adds an extra call to the database that grabs the count of how many rows will be returned when the query string is executed. The problem (in theory) is that even though I have set the PageSize property of the RadDataFilter to only be 1000 (to avoid things like timeout problems and overly large result sets) this first call to grab the count ignores that limiter. If this is indeed true then all I would need to do is change allPages to none in said line at the end of the OData query string. 

I have looked at all of the properties of the service context, RadDataServiceDataSource, and RadDataFilterThe but nothing is sticking out as a way to accomplish this. I have also tried hooking into the loading event of the RadDataServiceDataSource and editing the query string before it is sent but I cannot find a way to change the request URI (as it is read only at this point).

Any advice on how to remedy this situation?

Note: Code/XAML/Full Exception Details were omitted for neatness sake. If you would like to see them I can add those.

Thank you in advance for any help on this matter

Marc
Top achievements
Rank 1
 answered on 25 Oct 2013
1 answer
93 views
Hi,

when we hed the service plan with Telerik, the last download I did was for version 2012.3.1129 and it was for .net 4.0/4.5...
All of our project are in .Net 3.5 so I'm stuck with my version 2012.2.0912 and I would like to know if it's possible to have my latest download for .Net 3.5???

Thank's
Alain
Yana
Telerik team
 answered on 25 Oct 2013
2 answers
101 views
Hello,

My campony is consider to purchase RadControls for WPF
I downloaded the trial version in order to check if we can implement RichTextBox control in our projects.

Quesion: There is a option to insert sql view field to RadRichTextBox document?

Thanks,

Olga Kats

 


 

 

Petya
Telerik team
 answered on 25 Oct 2013
1 answer
262 views
Hello Telerik,

I have RadGridView with ItemTemplate and CellEditTemplate using microsoft ComboBox with IsEditable=true and IsTextSearchEnabled=true. I have raised the "ComboBox_PreviewKeyDown_1" and "ComboBox_PreviewTextInput_1" events , these are working fine but in a case when i press the backspace key the events are not fireing.

Please fix it and provide me the solution.

Regards,

Ramesh
HCL Technologies.
velusamyr@hcl.com
Vera
Telerik team
 answered on 25 Oct 2013
8 answers
160 views
Hi
I have a radgrid with virtual collection which loads 500 (virtual count) at a time. When I initially load the grid it has 500 rows loaded and the totalcount is 20000. I am selecting first row and dragging the scrollbar to the bottom and using shift+click on the last row. At this time I want all the 20000 rows to be selected but its not happening. I see only around 520 rows(the first 500 and last 20) are selected. How can I achieve selecting all the rows in between the first selected row and the shift+click row. Any help is much appreciated.
Maya
Telerik team
 answered on 25 Oct 2013
4 answers
335 views
I just installed the Q3 components and updated my current project to use them. I noticed that some of the control styles were tweaked a little bit. For example, one minor problem was fixed where the colors were slightly different between a RadRibbonRadioButton and RadRibbonToggleButton. That's a good thing.

Unfortunately, I also noticed that my RadListBox inside my RadPanelBar is getting a hover border now. I want to get rid of the orange border that appears when I hover over the RadListBox. What do I need to change?

These controls are being dynamically generated in code. This is part of a factory class that handles building prism region content. Please provide a response with code instead of XAML.

Anthony
Top achievements
Rank 1
 answered on 24 Oct 2013
3 answers
233 views
One person in the forum is trying to remove the rotating arrow RadToggleButton from the expander and I'm trying to get it back in! LOL! :)

We want to make several customizations to the RadExpander's header.  And that requires me to override the header in my own code.  The problem I am having is that I can't get the original content of the toggle button to appear in my cut-and-paste copy of Telerik's template.  Here is how the template is incorporated in to my code:

<Style x:Key="RadExpanderStyle" TargetType="telerik:RadExpander">
    <Setter Property="Template" Value="{StaticResource MyExpanderTemplate}"/>
</Style>

And Here is  the template itself as I have extracted it from Telerik's source:

                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
                    xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="c"
                    >
    <LinearGradientBrush x:Key="ControlOuterBorder_Normal" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
 
    <SolidColorBrush x:Key="ControlBackground_Normal" Color="#FF575859" />
     
    <LinearGradientBrush x:Key="ControlBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF2E2D2D" Offset="0"/>
        <GradientStop Color="#FF424242" Offset="1"/>
        <GradientStop Color="#FF424242" Offset="0.14"/>
    </LinearGradientBrush>
     
    <SolidColorBrush x:Key="ControlElement_Normal" Color="#FFC5C2C2" />
     
    <ControlTemplate TargetType="telerik:RadToggleButton" x:Key="ToggleTemplate">
        <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}"
                ContentTemplate="{TemplateBinding ContentTemplate}"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
    </ControlTemplate>
 
    <ControlTemplate TargetType="telerik:RadExpander" x:Key="MyExpanderTemplate">
        <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
              VerticalAlignment="{TemplateBinding VerticalAlignment}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Normal" />
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <c:Switch>
                                <c:Case Condition="Windows8 or Windows8Touch or Office2013">
                                    <DoubleAnimation Duration="0" Storyboard.TargetName="HeaderPanel"
                                                     Storyboard.TargetProperty="Opacity" To="0.5" />
                                </c:Case>
                                <c:Default>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                                   Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <c:If Condition="!ExpressionDark">
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerCircle"
                                                                       Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                                                    Value="{StaticResource ControlInnerBorder_Disabled}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </c:If>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                                   Storyboard.TargetProperty="Fill" Duration="0:0:0">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                                                Value="{StaticResource ControlBackground_Disabled}" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                   Storyboard.TargetProperty="Fill" Duration="0">
                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To=".5" />
                                    <DoubleAnimation Storyboard.TargetName="HeaderContent" Storyboard.TargetProperty="Opacity" To=".5" />
                                </c:Default>
                            </c:Switch>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="HeaderStateGroup">
                    <VisualState x:Name="NormalHeader" />
                    <VisualState x:Name="MouseOverHeader">
                        <Storyboard>
                            <c:If Condition="!Windows8Touch">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                               Storyboard.TargetProperty="Fill" Duration="0:0:0">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                                </ObjectAnimationUsingKeyFrames>
                                <c:If Condition="!Windows8 and !ExpressionDark and !Office2013">
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerCircle"
                                                                    Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                                                Value="{StaticResource ControlInnerBorder_MouseOver}" />
                                    </ObjectAnimationUsingKeyFrames>
                                </c:If>
                            </c:If>
                            <c:If Condition="!Windows8">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle" Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                   Storyboard.TargetProperty="Fill" Duration="0">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_MouseOver}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="PressedHeader">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                            Storyboard.TargetProperty="Fill" Duration="0:0:0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                            </ObjectAnimationUsingKeyFrames>
                            <c:If Condition="Office2013">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                                       Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                Storyboard.TargetProperty="Fill" Duration="0">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                            <c:If Condition="!Windows8 and !Office2013">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterCircle"
                                                                       Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                Storyboard.TargetProperty="Fill" Duration="0">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                            <c:If Condition="!Windows8 and !Windows8Touch and !ExpressionDark and !Office2013">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerCircle"
                                                                Storyboard.TargetProperty="Stroke" Duration="0:0:0">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="HeaderOrientationGroup">
                    <VisualState x:Name="HorizontalOrientation">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform"
                                    Storyboard.TargetProperty="LayoutTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="0" />
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform"
                                    Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalOrientation">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform"
                                    Storyboard.TargetProperty="LayoutTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="90" />
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform"
                                    Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ExpandStateGroup">
                    <VisualState x:Name="Expanded">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="arrow"
                                    Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)" To="180"
                                    Duration="0:0:0.2" />
                            <c:If Condition="Windows8Touch">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)" Storyboard.TargetName="arrow">
                                    <SplineDoubleKeyFrame KeyTime="0" Value="-1"/>
                                </DoubleAnimationUsingKeyFrames>
                            </c:If>
                            <c:If Condition="Windows8">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                    Storyboard.TargetProperty="Foreground">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                            <c:If Condition="Office2013">
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                    Storyboard.TargetProperty="Foreground">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Office2013Resource ResourceKey=InvertedBrush}" />
                                </ObjectAnimationUsingKeyFrames>
                            </c:If>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Collapsed">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="arrow" Duration="0:0:0.2"
                                             Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)" To="0" />
                            <c:If Condition="Windows8Touch">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)" Storyboard.TargetName="arrow">
                                    <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                </DoubleAnimationUsingKeyFrames>
                            </c:If>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ExpandDirectionStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition>
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content"
                                        Storyboard.TargetProperty="(Grid.Row)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <sys:Int32>0</sys:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content"
                                        Storyboard.TargetProperty="(Grid.Column)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <sys:Int32>0</sys:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                        Storyboard.TargetProperty="(Grid.Row)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <sys:Int32>0</sys:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                        Storyboard.TargetProperty="(Grid.Column)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <sys:Int32>0</sys:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0"
                                        Storyboard.TargetProperty="Width">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1"
                                        Storyboard.TargetProperty="Width">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0"
                                        Storyboard.TargetProperty="Height">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1"
                                        Storyboard.TargetProperty="Height">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="DirectionLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0"
                                    Storyboard.TargetProperty="Width">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0"
                                    Storyboard.TargetProperty="Height">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                    Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Storyboard.TargetName="arrowPanel"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" To="90"
                                    Duration="0:0:0" />
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DirectionRight">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1"
                                    Storyboard.TargetProperty="Width">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0"
                                    Storyboard.TargetProperty="Height">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content"
                                    Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Storyboard.TargetName="arrowPanel"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" To="-90"
                                    Duration="0:0:0" />
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DirectionUp">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0"
                                    Storyboard.TargetProperty="Width">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row0"
                                    Storyboard.TargetProperty="Height">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton"
                                    Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Storyboard.TargetName="arrowPanel"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).Angle" To="180"
                                    Duration="0:0:0" />
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DirectionDown">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0"
                                    Storyboard.TargetProperty="Width">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="row1"
                                    Storyboard.TargetProperty="Height">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content"
                                    Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}" >
                <c:If Condition="!Windows8 and !Windows8Touch and !Office2013">
                    <Border.CornerRadius>{StaticResource Expander_BorderRadius}</Border.CornerRadius>
                </c:If>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition x:Name="row0" Height="Auto" />
                        <RowDefinition x:Name="row1" Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition x:Name="col0" Width="Auto" />
                        <ColumnDefinition x:Name="col1" Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <telerik:RadToggleButton x:Name="HeaderButton"
                                             TabIndex="{TemplateBinding TabIndex}"
                                             HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
                                             VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
                                             HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
                                             VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
                                             Template="{StaticResource ToggleTemplate}" Background="Transparent"
                                             IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                             ClickMode="{TemplateBinding ClickMode}" FontSize="{TemplateBinding FontSize}"
                                             FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}"
                                             FontFamily="{TemplateBinding FontFamily}" FontStretch="{TemplateBinding FontStretch}"
                                             Foreground="{TemplateBinding Foreground}">
                        <c:If Condition="WPF">
                            <telerik:RadToggleButton.FocusVisualStyle>
                                <Style>
                                    <Setter Property="Control.Template">
                                        <Setter.Value>
                                            <ControlTemplate>
                                                <Border>
                                                    <Rectangle Margin="0" SnapsToDevicePixels="True" Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2"/>
                                                </Border>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </telerik:RadToggleButton.FocusVisualStyle>
                        </c:If>
                        <Grid x:Name="HeaderPanel" Background="Transparent">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Grid>
                                <c:If Condition="Windows8Touch">
                                    <Grid.Width>36</Grid.Width>
                                    <Grid.Height>36</Grid.Height>
                                </c:If>
                                <Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
                                         Stroke="{StaticResource ControlOuterBorder_Normal}"
                                         Fill="{StaticResource ControlBackground_Normal}">
                                    <c:Switch>
                                        <c:Case Condition="Windows8Touch">
                                            <Ellipse.Width>30</Ellipse.Width>
                                            <Ellipse.Height>30</Ellipse.Height>
                                            <Ellipse.StrokeThickness>2</Ellipse.StrokeThickness>
                                        </c:Case>
                                        <c:Default>
                                            <Ellipse.Width>20</Ellipse.Width>
                                            <Ellipse.Height>20</Ellipse.Height>
                                            <Ellipse.StrokeThickness>1</Ellipse.StrokeThickness>
                                        </c:Default>
                                    </c:Switch>
                                </Ellipse>
                                <Ellipse x:Name="OuterCircle" HorizontalAlignment="Center" VerticalAlignment="Center"
                                         Stroke="{x:Null}" Fill="{x:Null}">
                                    <c:Switch>
                                        <c:Case Condition="Windows8Touch">
                                            <Ellipse.Width>30</Ellipse.Width>
                                            <Ellipse.Height>30</Ellipse.Height>
                                            <Ellipse.StrokeThickness>2</Ellipse.StrokeThickness>
                                        </c:Case>
                                        <c:Default>
                                            <Ellipse.Width>20</Ellipse.Width>
                                            <Ellipse.Height>20</Ellipse.Height>
                                            <Ellipse.StrokeThickness>1</Ellipse.StrokeThickness>
                                        </c:Default>
                                    </c:Switch>
                                </Ellipse>
 
 
                                <c:If Condition="!ExpressionDark and !Windows8 and !Windows8Touch and !Office2013">
                                    <Ellipse x:Name="InnerCircle" Width="18" Height="18"
                                            Stroke="{StaticResource ControlInnerBorder_Normal}" HorizontalAlignment="Center"
                                            VerticalAlignment="Center" />
                                </c:If>
 
                                <Grid RenderTransformOrigin="0.5 0.5" x:Name="arrowPanel">
                                    <Grid.RenderTransform>
                                        <RotateTransform />
                                    </Grid.RenderTransform>
                                    <Path x:Name="arrow" Fill="{StaticResource ControlElement_Normal}"
                                          Stretch="None" RenderTransformOrigin="0.5,0.5">
                                        <c:Switch>
                                            <c:Case Condition="Windows8">
                                                <Path.Height>4</Path.Height>
                                                <Path.Width>6</Path.Width>
                                                <Path.Data>M0,0 L6,0 L2.86,3.94 L2.86,3.95 z</Path.Data>
                                            </c:Case>
                                            <c:Case Condition="Windows8Touch">
                                                <Path.Height>8</Path.Height>
                                                <Path.Width>10</Path.Width>
                                                <Path.Data>M 0 0 L 5 8 L 10 0 Z</Path.Data>
                                            </c:Case>
                                            <c:Case Condition="Office2013">
                                                <Path.Height>5</Path.Height>
                                                <Path.Width>7</Path.Width>
                                                <Path.Margin>0 1 0 0</Path.Margin>
                                                <Path.Data>M0,0 L1,0 L3.5,3 L6,0 L7,0 L7,1 L3.5,5 L0,1 z</Path.Data>
                                            </c:Case>
                                            <c:Default>
                                                <Path.Width>8</Path.Width>
                                                <Path.Height>4</Path.Height>
                                                <Path.Data>M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z</Path.Data>
                                            </c:Default>
                                        </c:Switch>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <RotateTransform Angle="0" />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                </Grid>
                            </Grid>
                            <telerikPrimitives:LayoutTransformControl RenderTransformOrigin=".5 .5"
                                    x:Name="HeaderContentTransform">
                                <ContentPresenter x:Name="HeaderContent" Grid.Column="1" Margin="5 0"
                                        VerticalAlignment="Center" HorizontalAlignment="Stretch" UseLayoutRounding="True"
                                        Content="{TemplateBinding Header}"
                                        ContentTemplate="{TemplateBinding HeaderTemplate}" />
                            </telerikPrimitives:LayoutTransformControl>
                        </Grid>
                    </telerik:RadToggleButton>
                    <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Visibility="Collapsed" UseLayoutRounding="True"
                            Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                </Grid>
            </Border>
        </Grid>
    </ControlTemplate>
</ResourceDictionary>

All have at this point are little dots where the toggle button should be.  Any hints as to how I can restore the contents of the original button would be appreciated.  We are using the Expression Dark style BTW.
Don
Top achievements
Rank 1
 answered on 24 Oct 2013
0 answers
128 views
EDIT: Disregard this post. I was able to find a workaround to my problem in RadChart.


Hello

I am attempting to make a Cartesian bar graph with range bars. 

I would like the graph to take beginning dates, end dates, and a name from a file and plot the name in a categorical X axis while plotting the duration of the file in the Y axis. 

As is I am using range bars for this and converting the dates to doubles and plotting those against the file name.  Is there any way that I can skip the conversion step and simply plot each bar with the high and low values being DateTimes? 

If not, is there any way I can access the tickpoint values and change what they are? 

I built the same chart using a RadChart and was able to achieve the desired look, but could not zoom effectively (as the chart would crash for some reason). Upon reading several threads on zooming help, it seems that there was a bug in RadChart and all moderators suggested RadChartView instead. I am trying to implement this, but cannot figure out how to either plot bars with DateTime high/low values or how to access individual tick labels so that I can change them. 

Any help would be greatly appreciated!

The attached pictures are views of what the RadChart (the one that can't zoom, but has the right axis labels, not to mention a legend and better color scheme) and of what the RadChartView (the one which can zoom, but I cannot figure out a way to rename the axis/plot the bars as DateTimes in) look like.
Ryan
Top achievements
Rank 1
 asked on 24 Oct 2013
1 answer
48 views
I want to copy the linear gradient that I see used in one of the themes for the ListBox, for a border control. I've tried right-mouse button on the relevant control and I see "Edit Style" and then "Edit a Copy...". I've not done this before, and I'd hate to bring in all of the style into my XAML, so what does "Edit a Copy..." do?
Rosen Vladimirov
Telerik team
 answered on 24 Oct 2013
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?