Telerik Forums
UI for WPF Forum
1 answer
181 views
Hi,

Can we create our own controls like Rectangle, Ellipse and add them to the Rad Diagram for performing all the functionality which are supported by Rad Diagram?

Please send us example. I need to add Rectangle to the Rad Diagram and need to change its color, size... How to do that???

To dynamically get control I used below code:
RadDiagramShape shape=new RadDiagramShape();
            shape.Geometry= ShapeFactory.GetShapeGeometry(CommonShapeType.RectangleShape);
            raddiag.AddShape(shape);

foreach
 (RadDiagramShape sample in raddiag.Items)
                {
                sample.Background  = newBrush;
                }


And used the foreach loop to get the control and apply color... but  we are not able to get any item in raddiag.Items it is showing null.. what we are missing here???? please let us know...

Keenly waiting for reply...

Regards,
Swati 
Tina Stancheva
Telerik team
 answered on 07 Aug 2012
2 answers
145 views
Hi All,

I am currently using Q2 2011 Rad controls..and Rad Diagram is not included in this install....How can I use Rad Diagram Control in Q2 2011?

Also can I get any working  example of the same?

Please reply as early as possible..

Regards,
Swati
Tina Stancheva
Telerik team
 answered on 07 Aug 2012
1 answer
119 views
Hi,

I'm using the RibbonView version 2012.1.326.  I would like to to be able to display the contents of each tab as a user hovers over the title area of each tab when the Ribbon is minimized.  I would like the Ribbon to return to the minimized state when the user moves the mouse off of the tab. Are there any hover or mouseover events for the tab that I could subscribe to inorder to accomplish this?

Thanks,
Trang 
Tina Stancheva
Telerik team
 answered on 07 Aug 2012
1 answer
76 views
Hello,

I have a user control which implments INotifyPropertyChanged, and has a radTimeBar declared in xaml.  I set the datacontext in codebehind to "this".  However, the Property changed never gets set, so I can't update the time bar properties.  Any Idea why this might be?  Here is a code sample:
Thanks,
Eric
public partial class PerfPresenter : INotifyPropertyChanged
    {
         public static readonly DependencyProperty VisiblePeriodStartProperty =
            DependencyProperty.Register("VisiblePeriodStart", typeof(DateTime), typeof(PerfPresenter));
 
        public static readonly DependencyProperty VisiblePeriodEndProperty =
            DependencyProperty.Register("VisiblePeriodEnd", typeof(DateTime), typeof(PerfPresenter));
        public DateTime VisiblePeriodStart
        {
            get { return (DateTime)GetValue(VisiblePeriodStartProperty); }
            set
            {
                SetValue(VisiblePeriodStartProperty, value);
                NotifyPropertyChanged(VisiblePeriodStartProperty.Name);
            }
        }
 
        public DateTime VisiblePeriodEnd
        {
            get { return (DateTime)GetValue(VisiblePeriodEndProperty); }
            set
            {
                SetValue(VisiblePeriodEndProperty, value);
                NotifyPropertyChanged(VisiblePeriodEndProperty.Name);
            }
        }
        public PerfPresenter()
        {
            this.DataContext = this;
            InitializeComponent();
        }
 
public event PropertyChangedEventHandler PropertyChanged;
 
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
}

<UserControl x:Class="Microsoft.Office.Engineering.PerfPresenter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Microsoft.Office.Engineering"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
        <Grid x:Name="PerfGrid" DataContext="{Binding}">
<
telerik:RadTimeBar x:Name="radTimeBar" DataContext="{Binding}"
                             
                            Grid.Column="1" Background="Transparent"
                            ItemIntervalChanged="RadTimeBar_ItemIntervalChanged"
                            PeriodStart="{Binding PeriodStart, Mode=OneWay}" PeriodEnd="{Binding PeriodEnd, Mode=OneWay}"
                            VisiblePeriodStart="{Binding VisiblePeriodStart, Mode=TwoWay}" VisiblePeriodEnd="{Binding VisiblePeriodEnd,Mode=TwoWay}"
                            Selection="{Binding TimeSelection, Mode=OneWayToSource}" MinSelectionRange="{Binding MinimumSelectionRange, Mode=OneWay}" SelectionChanged="TimeBarSelectionChanged"
                            MinZoomRange="{Binding ActualMinZoomRange, Mode=OneWayToSource}"
                            MouseDoubleClick="RadTimeBarMouseDoubleClick"
                            VisiblePeriodChanged="RadTimeBarVisiblePeriodChanged">
            <telerik:RadTimeBar.Margin>
                <Thickness Left="0"
                           Right="{x:Static SystemParameters.VerticalScrollBarWidth}"
                           Top="0"
                           Bottom="0"/>
            </telerik:RadTimeBar.Margin>
            <telerik:RadTimeBar.Intervals>
                <telerik:MinuteInterval IntervalSpans="1, 5, 10, 15" />
            </telerik:RadTimeBar.Intervals>
            <Grid x:Name="radTimeBarGrid">
            </Grid>
        </telerik:RadTimeBar>
</Grid>
</UserControl>
Tsvetie
Telerik team
 answered on 07 Aug 2012
1 answer
359 views
Hello,

In keeping with the mvvm style, I have been trying populate the timebar intervals via binding.  However, it complains at me when I try(see below) because Intervals is readonly.  I noticed the interval groups and interval items properties, but I'm not sure what they do.  Is there a way to populate the intervals (and acess other read-only properties such as ActualMinZoomRange) without resorting to giving the RadTimeBar and "x:Name="?

Thanks,
Eric
<telerik:RadTimeBar DataContext="{Binding}" Intervals="{Binding Intervals, Mode=OneWayToSource}"/>
Tsvetie
Telerik team
 answered on 07 Aug 2012
6 answers
113 views
I evaluated the WPF gauge controls a few version ago, and the controls in the demo were very different (nicer, I think). They were so nice that I used a screen shot to capture them and bring it directly into my photoshop design. I've finally completed the design phase and am ready to bring the code back in, but I can't seem to find the source code example to make the gauge look like what I saw in the demo.

Am I looking in the wrong place? Have the controls changed so drastically that I can't use the old design? I've attached an image of the control I borrowed from an earlier telerik demo...

Any chance this sample code is still laying around you can share?
Sia
Telerik team
 answered on 07 Aug 2012
1 answer
102 views
I am having trouble setting up grouping by a column that is bound to a data element that goes through a value converter.  Below I am trying to group by the Reading Station Column.

<tk:RadGridView Name="RoutesGrid"
            AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True"
            ItemsSource="{Binding PagedSource, ElementName=DataPager}" SelectedItem="{Binding SelectedRoute}"
                        tk:StyleManager.Theme="Summer" MouseRightButtonDown="RadGridView_MouseRightButtonDown">
            <!--<tk:RadGridView.GroupDescriptors>
                <tk:ColumnGroupDescriptor Column="{Binding Columns[\Reading Station\], ElementName=RoutesGrid}" />
            </tk:RadGridView.GroupDescriptors>-->
            <tk:RadGridView.Columns>
                <tk:GridViewDataColumn
					Header="ID"
					DataMemberBinding="{Binding ID}"
					TextAlignment="Center">
                </tk:GridViewDataColumn>
                <tk:GridViewDataColumn 
					Header="Reading Station"
					DataMemberBinding="{Binding ReadingWorkstation, Converter={StaticResource WorkstationToNameConverter}}"
					TextAlignment="Center" Width="Auto">
Vera
Telerik team
 answered on 07 Aug 2012
1 answer
118 views
Hi all,

I am just starting to implement zoom/scrolling for my RadChart. However, I am running into the problem where my X axis data type is DateTime, thus when I add ZoomScrollSettingsX it gave me "Cannot convert from Double to DateTime" error. Can someone get me started on creating a custom ZoomScrollSettings?

Much appreciated,
Jin
Rosko
Telerik team
 answered on 07 Aug 2012
1 answer
71 views
A while ago I built a custom Filtering Control for a boolean column based upon this article http://www.telerik.com/help/wpf/gridview-filtering-custom-filtering-controls.html (Shown in BeforeUpdate.png).  It worked fine in version 2012.1.326.40. I have recently updated our version to 2012.2.725.40 and it now shows as AfterUpdate.png. the code I have in the method that Implement IFilteringControl.Prepare does get hit when the control is shown, it just is showing what looks to be the default filtering control and not my custom one.

I have used Style Templates for almost every part of the RadGridView, is there one I just need to update or something? Just not sure how to fix the issue since all i did was update to your latest Telerik version. Was there something that was changed which disabled custom Filter controls?
Yordanka
Telerik team
 answered on 07 Aug 2012
3 answers
277 views
How do I set the time line to vertical orientation? I want to display the items in columns and the time intervals should be rows, like the ScheduleView.
Tsvetie
Telerik team
 answered on 07 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?