How to get all Rad Date Picker ID on a page

3 posts, 1 answers
  1. Nilesh
    Nilesh avatar
    5 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2012 Link to this post

    Hello,

    How to get client id of all date picker control on a page using javascript like the way we can get array of rad comboboxes


    teleric.web.ui.Radcombobox.comboboxes[i]...

    so is there any way to get client id/array of date picker control


    thanks,
    Nilesh
  2. Answer
    Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 30 Aug 2012 Link to this post

    Hi Nilesh,

    Could you please try the following approach and let me know if it helps you?
    var pickers = [];
     
    function pageLoad() {
        var radControls = $telerik.radControls;
        for (var i = 0; i < radControls.length; i++) {
            if (Telerik.Web.UI.RadDatePicker.isInstanceOfType(radControls[i])) {
                pickers.push(radControls[i]);
            }
        }
    }

    That should do the trick.

    Greetings,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nilesh
    Nilesh avatar
    5 posts
    Member since:
    Aug 2012

    Posted 30 Aug 2012 Link to this post

    Hi,

    I have already figured out a solution but will definitely give a try to this solution as well.
    Thanks for responding.


    Thanks,
    Nilesh
Back to Top