This is a migrated thread and some comments may be shown as answers.

Binding DayStartTime/DayEndTime issue

6 Answers 94 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Stanescu Mihai
Top achievements
Rank 1
Stanescu Mihai asked on 12 Sep 2012, 08:26 AM
Hello,

I found an issue with, don't know if it's a bug or not.
I have a dayviewdefinition which has it's daystarttime and dayendtime binded from the ViewModel, the binding works correctly but it doesn't refresh correctly.

This is my definition, i also have set MinTimeRulerExtent="200" MaxTimeRulerExtent="5000"
<telerik:DayViewDefinition DayStartTime="{Binding DataContext.ScheduleViewDayTimes[0], ElementName=scheduleview}"
                                                   DayEndTime="{Binding DataContext.ScheduleViewDayTimes[1], ElementName=scheduleview}"
                                                   MinorTickLength="30min" MajorTickLength="60min"
                                                   VisibleDays="1" Orientation="Vertical" StretchGroupHeaders="True" />

Also made some screenshots of my problem but for some strange reason I can't attach them.
Used imageshack to show images, please check the saturday one and then the friday. As you can see the starttime is changed.
Friday Saturday

6 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 13 Sep 2012, 12:37 PM
Hi Stanescu,

We tried to reproduce the issue but with no success. Could you describe your project in more details, especially the binding of the DayStartTime property or any customization of the DayView that may be related to the issue?

We created and attached a sample project for you showing that the DayView behaves as expected when you set DayStartTime using binding to the view model.

Regards,
Vladi
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
CT
Top achievements
Rank 1
answered on 13 Sep 2012, 01:12 PM
Hello Vladi,

    Thanks for your reply. I have taken your project and updated it to show the issue.
    I have uploaded the sample project to the ticket with id: 605121 - it was uploaded using our companys main account.
    You can view this behaviour when you cycle through days, especially from one day which has a start time later than the next day. The timeruler shows the correct start time and end time but it doesn't expand to the length of the scheduleview control.

    It happens for both horizontal and vertical orientation.

Best regards,
Mihai

0
Vladi
Telerik team
answered on 14 Sep 2012, 11:49 AM
Hello Mihai,

Thank you for sending us the runnable project.

I am pasting the reply from the ticket here for a reference:

I would suggest you to set MinTimeRulerExtent to a value, smaller than the monitors width ( in pixels ) that you want to display the application and the MaxTimeRulerExtent to Infinity in DayViewDefinition. This will stretch the RadScheduleView and appointments will be visible without scrolling or having any empty spaces.


Kind regards,
Vladi
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Stanescu Mihai
Top achievements
Rank 1
answered on 14 Sep 2012, 12:20 PM
Hello Vladi,

    I have tried your suggestion but it didn't work either.
    I have used MinTimeRulerExtent="200" and MaxTimeRulerExtent="5000" also MaxTimeRulerExtent="Infinity" and the problem still persists.
    Indeed the RadScheduleView is stretched but after I switch days it will no longer be the case.

Best regards,
Mihai.
0
Accepted
Vladi
Telerik team
answered on 17 Sep 2012, 01:28 PM
Hello Mihai,

You will need to set the MinTimeRulerExtent to a higher value than 200, if you are displaying the ScheduleView on for example a 21 inch monitor. Setting a value close to 1650 and setting the DayStartTime to 9:00 will make the TimeLineRuler stretch to the hole screen.

Note that for each time that you set a different DayStartTime you need to set a different MinTimeRulerExtent. Setting the DayStartTime property only once will work if you set the DayStartTime property only once.

Hope this helps.

Kind regards,
Vladi
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Stanescu Mihai
Top achievements
Rank 1
answered on 15 Nov 2012, 08:58 AM
Hello Vladi,
    
    Sorry for the late response. I have tried your workaround of switching MinTimeRulerExtent between 2 values each time the day is changed (eg. 400 - 500) and it worked. 
    But I still feel that the control should refresh itself, maybe in a later release.

    Thanks for the answer.

Best regards,
Mihai
Tags
ScheduleView
Asked by
Stanescu Mihai
Top achievements
Rank 1
Answers by
Vladi
Telerik team
CT
Top achievements
Rank 1
Stanescu Mihai
Top achievements
Rank 1
Share this question
or