visiblerangestart and visiblerangeend not always working

3 posts, 0 answers
  1. SelAromDotNet
    SelAromDotNet avatar
    67 posts
    Member since:
    Jul 2012

    Posted 23 Apr 2008 Link to this post

    greetings, I've got a scheduler control which I'm using as an events calendar (read only). so far it's working very well, except I tried to optimize the queries using the VisibleRangeStart and VisibleRangeEnd properties of the control. The problem is that sometimes it work and sometimes it doesn't.

    I added a Response.Write() of these two values so I can track what is changing on postback.

    my page starts out with month view, and the output shows that it's reading from 3/30/2008 - 5/4/2008, which is great that's what I need. But then I click the Week view button, and the date range still shows the same range instead of the smaller week view from 4/20/2008 - 4/26/2008. If I then click to the previous week, I then SEE the date range 4/13 - 4/19, however the variables I'm outputting show that the range NOW is 4/20-4/27.

    it looks like the visible range properties are not being updated until AFTER the page posts back, so how am I supposed to properly bind to the datasource?

    I should add that I'm binding to a custom object on Page_Load, not using the datasource.

    any help is appreciated!
  2. max
    max avatar
    42 posts
    Member since:
    Nov 2007

    Posted 24 Apr 2008 Link to this post

    I'm having the same issue..
  3. Peter
    Peter avatar
    6637 posts

    Posted 25 Apr 2008 Link to this post

    Hello guys,

    The PageLoad event occurs too early to allow you to get the actual values for VisibleRangeStart and VisibleRangeEnd. You should use NavigationComplete of RadScheduler instead.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top