RadScheduler popup does not open after insert appointment.

2 posts, 0 answers
  1. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 26 Sep 2011 Link to this post

    It's ok after delete appointment.
    But popup does not open after insert appointment. (doubleclick or edit of contextmenu)
    I don't know why.
    So help me, please.

    • aspx code
    <telerik:RadScheduler ID="RadSchedulerTemplate" runat="server" EnableEmbeddedSkins="false"
    EnableDescriptionField="true" Height="800"
    SelectedView="DayView" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
    DataDescriptionField="Description" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID">
    <AdvancedForm Modal="true" />
    <AppointmentContextMenuSettings EnableDefault="true" />
    <TimeSlotContextMenuSettings EnableDefault="true" />

    • vb code
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
    End If
    End Sub

    Private Sub GetSchedule()
    Dim dbConnection As SqlConnection = New SqlConnection
    Dim dbCommand As SqlCommand = New SqlCommand
    Dim dbReader As SqlDataReader = Nothing

    dbConnection.ConnectionString = ConfigurationManager.ConnectionStrings("Test").ConnectionString
    dbCommand = dbConnection.CreateCommand
    dbCommand.CommandType = CommandType.StoredProcedure
    dbCommand.CommandText = "S_GetSchedule"
    dbReader = dbCommand.ExecuteReader

    RadSchedulerTemplate.DataSource = dbReader

    End Sub

    ... and insert, delete, update code.

    And I have another question.
    Why does not updated after update appointment?
    When I delete or insert, Immediately, I can see rebind data.
    But updating does not. Why?

    So...I expect your answer. 
    (Forgive my basic English skills)

  2. Ivana
    Ivana avatar
    657 posts

    Posted 28 Sep 2011 Link to this post

    Hello Shunman,

    Try to remove the "If Not Page.IsPostBack" check in Page_Load method and call the GetSchedule() method every time a post back to the server is made.

    The problem might also be in the custom implementation of the insert, update and delete cases.

    If you are still having problems, could you please send us a support ticket where a sample project with the issue isolated in it can be attached to the message.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top