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

visiblerangestart and visiblerangeend not always working

2 Answers 185 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SelAromDotNet
Top achievements
Rank 2
SelAromDotNet asked on 23 Apr 2008, 02:36 PM
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 Answers, 1 is accepted

Sort by
0
max
Top achievements
Rank 1
answered on 24 Apr 2008, 09:37 AM
I'm having the same issue..
0
Peter
Telerik team
answered on 25 Apr 2008, 10:13 AM
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,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
SelAromDotNet
Top achievements
Rank 2
Answers by
max
Top achievements
Rank 1
Peter
Telerik team
Share this question
or