RadDatePicker, $find

3 posts, 1 answers
  1. John John
    John John avatar
    15 posts
    Member since:
    Dec 2009

    Posted 23 Sep 2010 Link to this post

    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. Answer
    Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 23 Sep 2010 Link to this post

    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
  3. John John
    John John avatar
    15 posts
    Member since:
    Dec 2009

    Posted 23 Sep 2010 Link to this post

    Thank you very much. I didn't know this.
Back to Top