Hi All,
I am dynamically creating a load of datetime controls (code below) and they all use a shared calendar and timeview to save resources. They work fine except for the fact that I can't figure out how to get an AJAX callback to fire on the SelectedDateChanged event. If I create a control in the aspx file it's fine however creating dynamically is another matter. Other than using a JS based callback does anyone have any thoughts?
I am also finding that when I add the control to the Ajaxmanager as below the calendar is displayed at the bottom of the page and non of my controls get displayed, any thoughts?
Regards,
Jon
I am dynamically creating a load of datetime controls (code below) and they all use a shared calendar and timeview to save resources. They work fine except for the fact that I can't figure out how to get an AJAX callback to fire on the SelectedDateChanged event. If I create a control in the aspx file it's fine however creating dynamically is another matter. Other than using a JS based callback does anyone have any thoughts?
Dim uxStartDate As RadDateTimePicker = New RadDateTimePicker |
uxStartDate.DbSelectedDate = CDate(startDate) |
uxStartDate.ID = "uxStartDate_" & rowID |
uxStartDate.Width = 180 |
uxStartDate.CssClass = "dateCol" |
uxStartDate.SharedCalendarID = "uxSharedCal" |
uxStartDate.SharedTimeViewID = "uxSharedTimeView" |
uxStartDate.DateInput.DisplayDateFormat = "ddd dd/MM/yy HH:mm:ss" |
uxStartDate.AutoPostBack = True |
uxStartDate.AutoPostBackControl = Telerik.Web.UI.Calendar.AutoPostBackControl.Both |
Protected Sub SelectedDateChange(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs) |
' Do some stuff here |
End Sub |
I am also finding that when I add the control to the Ajaxmanager as below the calendar is displayed at the bottom of the page and non of my controls get displayed, any thoughts?
uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxStartDate , uxEndDate) |
Regards,
Jon