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
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.