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!
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!