Zoom question

15 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 28 Apr 2014 Link to this post

    Hi,

    with a vertical orientation, I would like to know how I can implement a vertical AND a horizontal zoom???

    Thank's
    Alain
  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 29 Apr 2014 Link to this post

    Hello,

    Please review our Zooming demo that illustrates how you can zoom the time axis.

    Is this demo suits your need? Could you give us more details on the task that you want to implement?

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 29 Apr 2014 in reply to Rosi Link to this post

    Hi Rosi,

    the demo did not suits my need completly!!! I have a vertical orientation in my control, for the vertical zoom, fine but I need to implement an orizontal zoom without changing the orientation of my control. I need a vertical and a horizontal zoom keeping the orientation of my control.

    Thank's
    Alain
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 29 Apr 2014 Link to this post

    Hello,

    RadScheduleView does not have built-in zooming on the orientation different than the timeruler. However it has different properties that can be used to fit your needs, but we need more details before providing you with suggestions. That is why Is it possible  to give us more details on what  you men by  horizontal zoom -

    Do you need to change the count of displayed days? - you can do this by changing the VisibleDays property of the view definition depending on the  slider value.(Also, could you specify which view definition do you use?)

    Do you need to change the width? - you can try setting the width of the control  depending on the slider value.

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  6. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 29 Apr 2014 in reply to Rosi Link to this post

    Hi Rosi,

    thank's for your quick reply :)

    I use the weekviewdefinition and I do not want to change the number of day to display. I need to increase or decrease the width of the cells binding on a slider value. I guess for the vertical zoom I can bind the MinTimeRulerExtent property to my slider value but I'm not sure. I need to implement a zoom like we have in Excel...

    Thank's
    Alain
  7. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 30 Apr 2014 Link to this post

    Hello,

    Please find the attached project illustrating how you can implement the task.

    It shows how you can bind the MinAppointmentWidth property to the slider value to change the width of the cells.

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  8. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 30 Apr 2014 in reply to Rosi Link to this post

    Hi Rosi,

    thank's for the demo :) If I'm trying to impletement a zoom factor from 50% to 150%, when my slider go under the 100%, it's look like the control seem's to don't know how to display the cells, is this normal???

    Thank's
    Alain
  9. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 30 Apr 2014 Link to this post

    Hi,

    I am not sure that i understand the problem that you described. Is it possible to modify the project that I sent you to illustrate the issue?

    Also note,that the whole width of all cells cannot be smaller than the width of the scheduleview. If this is your case I suggest you bind and change the Width of the ScheduleView too.

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  10. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 30 Apr 2014 in reply to Rosi Link to this post

    Hi Rosi,

    I see, it's exactly what they happen, the whole width of all cells become smaller than the with of the scheduleview :(

    In that case, I want to implement a zoom from 100% to 200% (100% = the whole witdh of all cells and 200% = 2000) through a converter, is this possible???

    Thank's
    Alain
  11. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 05 May 2014 Link to this post

    Hi Alain,

    You will be able to achieve that by modifying the ScheduleView Width using the Slider. You just need to set the Minimum value to 1000 and the Maximum to 2000 - this way the ScheduleView will be resizing as well as the Width of the VisibleDays. Please try the following and let me know if it suits your needs:

    <telerik:RadSlider Minimum="1000" Maximum="2000" Margin="8 20 8 10"
                    VerticalAlignment="Top"
                    Value="{Binding Width, ElementName=ScheduleView, Mode=TwoWay}"
                    LargeChange="50" />

    Hope this helps.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  12. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 05 May 2014 in reply to Kalin Link to this post

    Great Kalin thank's :)

    Alain
  13. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 05 May 2014 Link to this post

    Something I forgot,

    is this possible with this kind of zoom to have something as fast as Excel do???

    Thank's
    Alain
  14. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 08 May 2014 Link to this post

    Hi,

    The zoom that the integration between ScheduleView and Slider illustrated shows the best performance of this functionality that RadScheduleView supports at this stage. Isn't the performance not fast enough for your scenario?

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  15. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 08 May 2014 in reply to Rosi Link to this post

    Hi Rosi,

    the problem that I have is because I display monday to fridat from 8h00am to 9h00pm with a MinorTickLength of 15mins. Initially, I fill all the grid with closed slots then after I replace the closed slots by the specialslots or appointments I received by a method called by the client. So the zoom we implemented change the height of the cell and the MinorTickLength so I have to recall my method internally to refresh the grid so at this time I have a performance issue.

    Thank's
    Alain
  16. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 12 May 2014 Link to this post

    Hello Аlain,

    I see your point however at this stage there isn't anything I can suggest you.

    Improvement of the performance of RadScheduleView SpecialSlots feature is one of the ScheduleView functionalities that we are planning to improve by the end of the year.

    Regards,
    Rosi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready