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

How to get all Rad Date Picker ID on a page

2 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nilesh
Top achievements
Rank 1
Nilesh asked on 27 Aug 2012, 05:41 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 30 Aug 2012, 08:00 AM
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.
0
Nilesh
Top achievements
Rank 1
answered on 30 Aug 2012, 04:18 PM
Hi,

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


Thanks,
Nilesh
Tags
General Discussions
Asked by
Nilesh
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Nilesh
Top achievements
Rank 1
Share this question
or