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

RadDatePicker, $find

2 Answers 81 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 23 Sep 2010, 08:13 AM
Hi 


I'm trying to get access to the RadDatePicker and RadTimePicker from client-side code. I've read that I should use $find() function, which is shortcut for $findComponent(), in Sys.Application.  But I can't find it, to get/set date!  

Could you tell me what's the problem plese?  Can  jquery cause this problem?

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 23 Sep 2010, 10:03 AM
Hello John,

You can use the ASP.NET AJAX $find shortcut or you can try the $telerik.findControl method that is part of our static client-side library
Telerik static client library

Example:
var myPicker = $telerik.findControl(document, "RadDatePicker1");

I recommend that you replace the document in the above code, otherwise the findControl method will traverse the whole document tree, which is a cumbersome operation.

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
John John
Top achievements
Rank 1
answered on 23 Sep 2010, 02:52 PM
Thank you very much. I didn't know this.
Tags
Calendar
Asked by
John John
Top achievements
Rank 1
Answers by
Daniel
Telerik team
John John
Top achievements
Rank 1
Share this question
or