Chris Yoker
Top achievements
Rank 1
Chris Yoker
asked on 12 May 2008, 04:27 PM
hiya,
We have an older version of the controls, but want to repeat the functionality that's on this page:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Calendar/Examples/DatePicker/ClientAPI/DefaultCS.aspx
I can see the follwoing call to a javascript function:
var datePicker = $find("<%= RadDatePicker1.ClientID %>");
where is the "find" function?
Ideally, I'd like to be able to download this separately.Is it possible?
If not, where would I find it in the download?
many thanks,
yogi
We have an older version of the controls, but want to repeat the functionality that's on this page:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Calendar/Examples/DatePicker/ClientAPI/DefaultCS.aspx
I can see the follwoing call to a javascript function:
var datePicker = $find("<%= RadDatePicker1.ClientID %>");
where is the "find" function?
Ideally, I'd like to be able to download this separately.Is it possible?
If not, where would I find it in the download?
many thanks,
yogi
6 Answers, 1 is accepted
0
Hi Chris,
The $find shortcut method provides a shortcut to the findComponent method of the Sys.Application class. This member is static and can be invoked without creating an instance of the class.
For details on the matter please refer to the following ASP.NET AJAX article.
Greetings,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The $find shortcut method provides a shortcut to the findComponent method of the Sys.Application class. This member is static and can be invoked without creating an instance of the class.
For details on the matter please refer to the following ASP.NET AJAX article.
Greetings,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Chris Yoker
Top achievements
Rank 1
answered on 13 May 2008, 08:19 AM
hiya Paul,
Thanks for the reply.The control I'm trying to use "$find" for is version 2.2.0 of radCalendar..in other words, the pre-Prometheus version.
I understand that the rad asp.net ajax controls were built on top of the asp.net ajax framewwork..would this be why the "$find" works with the latest controls, and not mine?
I ask because I've already tried:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<script type="text/javascript">
<!--
function NextDay(e)
{
var datePicker = Sys.Application.findComponent("<%= RadDatePicker2.ClientID %>")
If so, how would I be able to use the same functionality with my earlier calenedar version?
I can confirm that I'm using an asp.net ajax web application.
A quick reply much appreciated.
Many thenks,
yogi
Thanks for the reply.The control I'm trying to use "$find" for is version 2.2.0 of radCalendar..in other words, the pre-Prometheus version.
I understand that the rad asp.net ajax controls were built on top of the asp.net ajax framewwork..would this be why the "$find" works with the latest controls, and not mine?
I ask because I've already tried:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<script type="text/javascript">
<!--
function NextDay(e)
{
var datePicker = Sys.Application.findComponent("<%= RadDatePicker2.ClientID %>")
If so, how would I be able to use the same functionality with my earlier calenedar version?
I can confirm that I'm using an asp.net ajax web application.
A quick reply much appreciated.
Many thenks,
yogi
0
Hi Chris,
This method is not applicable for the classic version of the control (RadCalendar for ASP.NET). You will have to use
Greetings,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This method is not applicable for the classic version of the control (RadCalendar for ASP.NET). You will have to use
| function NextTime() |
| { |
| var timePicker = <%= RadTimePicker1.ClientID %>; |
| ... |
| ... |
Greetings,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Chris Yoker
Top achievements
Rank 1
answered on 13 May 2008, 08:49 AM
hiya Paul,
Thanks for the quick reply.
Ok, are you saying that in order for me to be able to update the date of the radDatePicker client side, in other words, use the follwoing functions in javascript:
var datePicker = <%= RadDatePicker2.ClientID %>;
var date = datePicker.get_selectedDate();
if (datePicker.isEmpty())
date = new Date();
date.setDate(date.getDate() + 1);
datePicker.set_selectedDate(date);
..then I need to get the latest radCalendar, and ditch the "classic" radCalendar?
many thanks,
yogi.
Thanks for the quick reply.
Ok, are you saying that in order for me to be able to update the date of the radDatePicker client side, in other words, use the follwoing functions in javascript:
var datePicker = <%= RadDatePicker2.ClientID %>;
var date = datePicker.get_selectedDate();
if (datePicker.isEmpty())
date = new Date();
date.setDate(date.getDate() + 1);
datePicker.set_selectedDate(date);
..then I need to get the latest radCalendar, and ditch the "classic" radCalendar?
many thanks,
yogi.
0
Hi yogi,
If you plan to implement your sites on top of ASP.NET AJAX, it is recommended to use the controls from our ASP.NET AJAX suite since they follow the conventions for client methods/properties of the framework and you can use the $find method to access the client object of each Telerik ASP.NET AJAX control.
The article from the online documentation concerning the migration from RadCalendar Classic to RadCalendar for ASP.NET AJAX can be used for reference during the update process:
http://www.telerik.com/help/aspnet-ajax/calendar_overviewmigrating.html
I hope this explanation helps.
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
If you plan to implement your sites on top of ASP.NET AJAX, it is recommended to use the controls from our ASP.NET AJAX suite since they follow the conventions for client methods/properties of the framework and you can use the $find method to access the client object of each Telerik ASP.NET AJAX control.
The article from the online documentation concerning the migration from RadCalendar Classic to RadCalendar for ASP.NET AJAX can be used for reference during the update process:
http://www.telerik.com/help/aspnet-ajax/calendar_overviewmigrating.html
I hope this explanation helps.
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Chris Yoker
Top achievements
Rank 1
answered on 14 May 2008, 12:51 PM
hiya Stephen and all,
Thanks for the reply.
This answers most of my questions.
I'll put another post in a more specific forum.
The help was appreciated.
yogi
Thanks for the reply.
This answers most of my questions.
I'll put another post in a more specific forum.
The help was appreciated.
yogi