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

RadScheduler popup does not open after insert appointment.

1 Answer 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
shunman
Top achievements
Rank 1
shunman asked on 26 Sep 2011, 10:43 AM

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" />
</telerik:RadScheduler>

  • vb code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
GetSchedule()
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
dbConnection.Open()
dbCommand = dbConnection.CreateCommand
dbCommand.CommandType = CommandType.StoredProcedure
dbCommand.CommandText = "S_GetSchedule"
dbReader = dbCommand.ExecuteReader


RadSchedulerTemplate.DataSource = dbReader
RadSchedulerTemplate.DataBind()

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)

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 28 Sep 2011, 03:07 PM
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,
Ivana
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
Tags
Scheduler
Asked by
shunman
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or