This is a migrated thread and some comments may be shown as answers.

advanced form with usercontrols

1 Answer 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
doug
Top achievements
Rank 2
doug asked on 17 Mar 2014, 06:03 PM
I am using the default advanced form template option in Visual Studio 2012.  I see it save to XML, but I need it to save to SQL "appointment" table.  As well as add a new textbox "CarrierText" and RadComboBox "ddlVendors" that lists values from SQL table.   I got this to work "showing  the new controls" except how do I access the values in my new textbox and RadComboxbox when the user hits "save" in the .aspx page RadScheduler1_AppointmentInsert.  NOTE: the textbox is directly added to the form advancedform.ascx and the RadComboBox is added to the ResourceControl.ascx

 tried getting the Carrier text below but no object found.
Private Sub RadScheduler1_FormCreated(sender As Object, e As SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated

If e.Container.Mode = SchedulerFormMode.AdvancedEdit OrElse e.Container.Mode = SchedulerFormMode.AdvancedInsert Then
_carrier = DirectCast(e.Container.FindControl("CarrierText"), RadTextBox)

End If

End Sub

1 Answer, 1 is accepted

Sort by
0
doug
Top achievements
Rank 2
answered on 18 Mar 2014, 07:47 PM
Got it working
Tags
Scheduler
Asked by
doug
Top achievements
Rank 2
Answers by
doug
Top achievements
Rank 2
Share this question
or