I'm using a RadDateTimePicker on a dynamically loaded control, and javascript is used to track any changes made on each control.
So I've added the following code, which works for the editing of the textbox and when selecting from the timeview part of the control.
(I presume these controls are inheriting onchange and onclick events as they're not available with intellisense.)
However, when I apply this same code to the Calendar - no matter what event I use - the javascript is not firing.
I've tried things like OnChange, ClientEvents-OnDateClick, ClientEvents-OnDateSelected etc. both on the RadDateTimePicker itself and on the Calendar.
Is there something I'm missing, or could you suggest another way to do this?
Thanks,
Graeme
So I've added the following code, which works for the editing of the textbox and when selecting from the timeview part of the control.
(I presume these controls are inheriting onchange and onclick events as they're not available with intellisense.)
this.rdtpAbsoluteBegin.DateInput.Attributes.Add("OnChange", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
this.rdtpAbsoluteBegin.TimeView.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
However, when I apply this same code to the Calendar - no matter what event I use - the javascript is not firing.
I've tried things like OnChange, ClientEvents-OnDateClick, ClientEvents-OnDateSelected etc. both on the RadDateTimePicker itself and on the Calendar.
this.rdtpAbsoluteBegin.Calendar.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
Is there something I'm missing, or could you suggest another way to do this?
Thanks,
Graeme