Telerik Forums
UI for Silverlight Forum
1 answer
82 views
Can I make the TimeLineIten move along the whole area. So that it is not static
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Mar 2020
8 answers
179 views

I am completely new to RadTimeline and WPF in general. I'm having problems on with binding data, I was following instructions to the point from here https://docs.telerik.com/devtools/wpf/controls/radtimeline/populating-with-data/databinding and still cannot get to see object on timeline. 

Basically, I have an Appointment object, which has Period field. Period has startDate and endDate, which are DateTime object. The goal is to display appointments exactly like on picture from link.

So in my ScheduleView window, I have (I'll just write key things):

 

this.DataContext = new TestObject(); //this is like your's Product object

TestObject has and filed Data (with property of course) which is List<Item>, named just as in your example. 

In constructor of TestObject this happens:

 

public TestObject(List<Appointment> appointments) {
            List<Item> li = new List<Item>();
            foreach(Appointment ap in appointments)
            {
                li.Add(new Item(ap.Period.Start.Subtract(ap.Period.End), ap.Period.Start));
            }
            this.data = li;
        }

 

 

Item object has 2 fields:

private TimeSpan timeSpan;

private DateTime startDate;

 

Finally here is XAML:

 

 <Grid>

        <telerik:RadTimeline x:Name="telerikTimeline" Content="RadTimeline" 
                             HorizontalAlignment="Left" Height="333" Margin="45,53,0,0" VerticalAlignment="Top" Width="689"
                             PeriodStart="05/01/2019 00:00:00" 
                             PeriodEnd="05/28/2019 00:00:00" 
                             StartPath="StartDate"   
                             DurationPath="TimeSpan"
                             ItemsSource="{Binding Data}">

            <telerik:RadTimeline.Intervals>
               
                <telerik:WeekInterval />
                <telerik:DayInterval />
            </telerik:RadTimeline.Intervals>

        </telerik:RadTimeline>
    </Grid>

 

What am I missing ?? So frustrating.. :)

 

Vladimir Stoyanov
Telerik team
 answered on 21 Nov 2019
7 answers
277 views

Hi,

Although documentation and another thread here mean, it can zoom in to hours and minutes, I cant make it work... Here is my code:

<telerik:RadTimeline
             PeriodStart="{Binding MinViewDate, Mode=TwoWay}"
             PeriodEnd="{Binding MaxViewDate, Mode=TwoWay}"
                               
             StartPath="LastUpdate"
                                                                 
             ItemsSource="{Binding Activities}">
         <telerik:RadTimeline.Intervals>
               
             <telerik:DayInterval />
             <telerik:HourInterval />
             <telerik:MinuteInterval />
         </telerik:RadTimeline.Intervals>
     </telerik:RadTimeline>

Max. zoom level is day - see "view.png". Can you explain me, what I am doing wrong?

This is the DataVizualization.dll version I am using: 2012.1.326.1050

Oleg

Martin Ivanov
Telerik team
 answered on 23 Feb 2018
2 answers
43 views

Hello,

I am investigating the Timeline control to determine if we are able to use it for our project.

The first problem I am getting stuck on is I can't find a way to hide the period control.

I am playing with a simple example.

http://joxi.ru/GrqyRELhQVpbGr

There is a form that shows a period information that I don't need to have.

I am trying to use styles to hide it.

        <Style TargetType="telerik:TimelineGroupPeriodControl" >
            <Setter Property="Height" Value="0" />
            <Setter Property="Visibility" Value="Collapsed" />
        </Style>
        <Style TargetType="telerik:TimelinePeriodControl" >
            <Setter Property="Height" Value="0" />
            <Setter Property="Visibility" Value="Collapsed" />
        </Style>

http://joxi.ru/VrwMkLqtObZgY2

The period control is hidden but the place is still occupied.

Is that any solution that would work for me?

 

Thanks

 

 

Alexey
Top achievements
Rank 1
 answered on 11 Apr 2017
3 answers
33 views

Hi, 

 

How can I bind a Dictionary object to a Timeline.

 

For example:

 MyMainClass with the Attribute Dictionary

    Dictionary <string,MycustomObject> myObject = new Dictionary <string,MycustomObject>();

 

MycustomObject

Dictionary<int,AnotherObject> myOtherDictionary = new Dictionary<int,ANotherObject> ();

Date StartDate

Date EndDate

 

Class AnotherObject

 

Date DateItem

int DurationItem

 

I tried to asign to the ItemSource the dictionary in this way  but it doesn't work 

 

ItemSource="{Binding Path=myObject}"

StartDate="{Binding StartDate}"

DurationPath=DurationItem

Thanx's in advance

Peshito
Telerik team
 answered on 16 Sep 2015
1 answer
41 views
Hi,

is this possible?
My problem is, that I use a list of timelines inside of a scrollviewer and I want to use Mouse Wheel only in the scrollviewer.
But the user should be able to use zooming and scrolling in a timeline only by mouse drag, not with mouse wheel, because by scrolling in the scrollviewer, the view of the timeline also changed.

any idea?

Best regards
Martin Ivanov
Telerik team
 answered on 25 Mar 2015
5 answers
68 views
The Silverlight president timeline demo made a reference to PresidentDataToPercentConverter but doesn't seems to include this file.

Also, is there a simpler example of using a custom timeline that supports multiple start / end dates like the president example?  The president example looks great but a bit hard to understand with many references to external resources.
Martin Ivanov
Telerik team
 answered on 19 Mar 2015
4 answers
45 views
Hi, 
      Basically, I want to Print my timelineview.
 As i want to provide a Preview before print, can i convert it to PDF first, then viewed by radPDFViewer and then print ? 
Pavel R. Pavlov
Telerik team
 answered on 21 Jan 2015
3 answers
201 views
Hello, 
        I am facing a few issue. I am using Grouping in timeline. 
   1.  Row height of each timeline item which overlaps. While overlaping, the items's height is automatically resets and the content is not visible.Kindly refere telerik1.png
  2.  Row height is affected and content elopes when we expand more than one groups. Kindly refer telerik1.png
   3. Total height os this control is to be fixed ? i have large amount of data which is in number of rows too. so even if i put control in a scrollviewer the control's scrolling is not visible! Refer image heightissue.png. 
Tsvetie
Telerik team
 answered on 10 Nov 2014
1 answer
28 views
Hello,

How can I get groupnames to show in my RadTimeline? I set the radtimeline itemssource (list of Tags) and the other properties in the codebehind . As shown in the attached image, the resulting timeline do not show the groupnames like in your example at http://www.telerik.com/help/silverlight/radtimeline-features-grouping.html. What telerik magic am I missing?

Regards,

Erik

my xaml:

        <telerik:RadTimeline BorderThickness="0" telerik:StyleManager.Theme="Windows8"
                                                 x:Name="timeline"   
                                                 StartPath="Date" 
                                                 HorizontalAlignment="Stretch" 
                                                 VerticalAlignment="Stretch"
                                                 Margin="5"
                                                 GroupPath="GroupName"
                                                 GroupExpandMode="None" 
                                                  >
code:

list = all my items with all properties set with non-null values.

                        timeline.ItemsSource = list.OrderBy(x=>x.GroupName);
                        timeline.PeriodStart = list().first.Date.AddHours(-1);
                        timeline.PeriodEnd = list().last.Date.AddHours(1);

                        timeline.VisiblePeriodStart = list.first().Date.AddHours(-1);
                        timeline.VisiblePeriodEnd = list.last().Date.AddHours(1);

Itemssource class:

    public class Tag
    {
        public Tag() { }

        public string Name { get; set; }
        public SolidColorBrush Color { get; set; }
        public string Description { get; set; }
        public string Solution { get; set; }
        public DateTime Date { get; set; }
        public String GroupName { get; set; }
    }


Milena
Telerik team
 answered on 15 Oct 2014
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?