Hi
i have a script there then you select 2 days in 2 RadDatePicker
updates a table with timepickers
the problem is then i use a button to submit the form how do i get access to my RadTimePicker controls
then i look in the table it is emtry the dynamic create rows disapers
i have a script there then you select 2 days in 2 RadDatePicker
updates a table with timepickers
| Protected Sub RadDatePicker2_SelectedDateChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs) Handles RadDatePicker2.SelectedDateChanged |
| Dim Days As Integer |
| If RadDatePicker2.SelectedDate.Value.Subtract(RadDatePicker1.SelectedDate.Value).Days >= 0 Then |
| Days = RadDatePicker2.SelectedDate.Value.Subtract(RadDatePicker1.SelectedDate.Value).Days |
| For i = 0 To Days Step 1 |
| Dim row As New TableRow |
| Dim cell As New TableCell |
| cell.Text = RadDatePicker1.SelectedDate.Value.AddDays(i) |
| row.Cells.Add(cell) |
| cell = New TableCell |
| Dim timePicker As New Telerik.Web.UI.RadTimePicker |
| timePicker.ID = "TimePickerA" & i |
| timePicker.Skin = "Black" |
| cell.Controls.Add(timePicker) |
| row.Cells.Add(cell) |
| timePicker = New Telerik.Web.UI.RadTimePicker |
| timePicker.ID = "TimePickerB" & i |
| timePicker.Skin = "Black" |
| cell.Controls.Add(timePicker) |
| row.Cells.Add(cell) |
| EventDates.Rows.Add(row) |
| Next |
| End If |
| End Sub |
the problem is then i use a button to submit the form how do i get access to my RadTimePicker controls
then i look in the table it is emtry the dynamic create rows disapers