Dear Telerik,
Am using RadTimePicker,RadDateTimePicker and RadDatePicker. I cant find the control in dynamically. I need DisplayDateFormat from database side. If i find the control is RadTimePicker, that ll execute on all loops like that control is RadTimePicker and RadDateTimePicker and RadDatePicker. so i cant set DisplayDateFormat properly. pls solve this problem.
Am using RadTimePicker,RadDateTimePicker and RadDatePicker. I cant find the control in dynamically. I need DisplayDateFormat from database side. If i find the control is RadTimePicker, that ll execute on all loops like that control is RadTimePicker and RadDateTimePicker and RadDatePicker. so i cant set DisplayDateFormat properly. pls solve this problem.
if (Ctrl is RadDatePicker)
{
((RadDatePicker)Ctrl).DateInput.DisplayDateFormat = "dd/MM/yyyy";
}
if (Ctrl is RadTimePicker)
{
((RadTimePicker)Ctrl).DateInput.DisplayDateFormat = "hh:mm tt";
}
if (Ctrl is RadDateTimePicker)
{
((RadDateTimePicker)Ctrl).DateInput.DisplayDateFormat="dd/MM/yyyy
hh:mm tt
"
}