Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to select an specific Time Slot in the WebDayView control?
posted

Hi:

I'd like to know if there is any way to select a particular time slot in the WebDayView. Here is my scenario:

I have a WebDayView control with a 10-minutes intervals on it. The idea is that according to the user's local time the WebDayView control should scroll its position to the current time of the day minus 1 hour. For example, assuming that I'm connecting to the application at 2 pm, the WebDayControl should be scrolled and displaying the 1 pm time slot.

Hope you can give some recommendations.

Thanks,

Sergio

Parents
No Data
Reply
  • 49378
    posted

    Hi shernandez,

    It has been a while since your post, however in case you still need assistance I would be glad to help.

    The WebDayView control has a ScrollPosition property which allows you to set the scroll's position in pixels. On the client you can use

        ig_getWebDayViewById("WebDayView1").setScrollPosition()

    to do that. Given that you can get the local time of your users you should be able to easily calculate how much to scroll - (number of 10min intervals)*intervalHeight.

    Please let me know if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

Children