advanced form with usercontrols

2 posts, 0 answers
  1. doug
    doug avatar
    25 posts
    Member since:
    Jan 2011

    Posted 17 Mar 2014 Link to this post

    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

  2. doug
    doug avatar
    25 posts
    Member since:
    Jan 2011

    Posted 18 Mar 2014 Link to this post

    Got it working
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top