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

[Solved] Client side selected date modification

1 Answer 212 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
santosh
Top achievements
Rank 1
santosh asked on 20 May 2008, 06:22 AM
How can i reference the rad scheduler in javascript function. Also Is there a way to set Schedulars Selected Date date in the javascript function?

In the documentation I found two methods that can be called in javascript to reference a control 

Which of the following method should I use?
var

scheduleInfo = $find('RadScheduler1');
var scheduleInfo = $get('RadScheduler1');

I would like to modify this controls selected date property
 scheduleInfo.set_selecteddate =  now;

Can I achive this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 20 May 2008, 02:52 PM
Hi santosh,

To find the client object of RadScheduler, please use:

 var Scheduler = $find(<%=RadScheduler1.ClientID%>);  
 

$get('RadScheduler1') will return the DOM element of RadScheduler.

The SelectedDate property cannot be set on the client. However, you can use RadAjax and update RadScheduler with the approach from this topic:
Manually add an AJAX request to a client-side event of an HTML element.






Peter
the Telerik team

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