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

[Solved] Get the day after click

3 Answers 118 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Antoine
Top achievements
Rank 1
Antoine asked on 23 May 2009, 04:33 PM
Hello,

I would like to customize the radscheduler.
My question is simple : I want to get after a click on a cell of the scheduler, the datetime of the day which was clicked.

how can I do that ?

thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 May 2009, 05:23 AM
Hi Antoine,

Try attaching OnClientTimeSlotClick event in order to get the time of clicked row/time slot.

ASPX:
 
<telerik:radscheduler id="RadScheduler1" runat="server" OnClientTimeSlotClick="OnClientTimeSlotClick" datasourceid="SqlDataSource2" > 
</telerik:radscheduler> 

JavaScript:
 
<script type="text/javascript"
function OnClientTimeSlotClick(sender, eventArgs) 
   alert(eventArgs.get_time()); 
</script> 

-Shinu.
0
Antoine
Top achievements
Rank 1
answered on 25 May 2009, 06:59 AM
It works great :)

Is is possible to have the same functionality but server-side ?
0
Peter
Telerik team
answered on 25 May 2009, 03:06 PM
Hello Antoine,

There isn't an OnTimeSlotClick server-side event which you can use similarly to OnClientTimeSlotClick. However, you can use RadAjaxManager to perform server-side logic on client click of a time slot. Here is a recent forum thread which illustrates this concept:
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/onclienttimeslotclick-goto-selecteddate.aspx


Greetings
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Antoine
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Antoine
Top achievements
Rank 1
Peter
Telerik team
Share this question
or