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

DateSelected event?

1 Answer 16 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
k f
Top achievements
Rank 1
k f asked on 30 Nov 2008, 11:35 PM
Hello,

I'm setting up a scheduler but I only want to pull back records based on the date selected and display those.  On the page load I get all records for that day.  However, what I'm trying to figure out is how to determine when a user clicks on the next or previous day arrows and take the date being moved to as I'll use that date to pass to my middletier to retrieve the scheduled events to display.

Also, if they click on the week view, again I'd like to figure out a way to obtain those dates to use to retrieve those dates as well.

Any help on this would be deeply appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Dec 2008, 01:06 PM
Hello Kris,

You can use the NavigationComplete event along with VisibleRangeStart and VisibleRangeEnd properties of RadScheduler. For example:
 protected void RadScheduler1_NavigationComplete(object sender, Telerik.Web.UI.SchedulerNavigationCompleteEventArgs e)  
    {  
        Response.Write(RadScheduler1.VisibleRangeStart.ToString() + " : " + RadScheduler1.VisibleRangeEnd.ToString());     
    } 


Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
k f
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or