Binding DayStartTime/DayEndTime issue

7 posts, 1 answers
  1. Stanescu Mihai
    Stanescu Mihai avatar
    33 posts
    Member since:
    Aug 2009

    Posted 12 Sep 2012 Link to this post

    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
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 13 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. CT
    CT avatar
    2 posts
    Member since:
    Jun 2012

    Posted 13 Sep 2012 Link to this post

    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

  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 14 Sep 2012 Link to this post

    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.

  6. Stanescu Mihai
    Stanescu Mihai avatar
    33 posts
    Member since:
    Aug 2009

    Posted 14 Sep 2012 Link to this post

    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.
  7. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 17 Sep 2012 Link to this post

    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.

  8. Stanescu Mihai
    Stanescu Mihai avatar
    33 posts
    Member since:
    Aug 2009

    Posted 15 Nov 2012 Link to this post

    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
Back to Top
DevCraft banner