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

Rebind does not work.

1 Answer 44 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
shunman
Top achievements
Rank 1
shunman asked on 27 Sep 2011, 08:30 AM
This is my code.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSchedulerTemplate" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadSchedulerTemplate">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSchedulerTemplate" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

and vb code.

Dim app As Appointment = e.Appointment
Dim subject As String = app.Subject
Dim startDate As DateTime = app.Start
Dim endDate As DateTime = app.End
Dim recurrenceRule As String = app.RecurrenceRule
Dim recurrenceParentID As Integer = app.RecurrenceParentID
Dim description As String = app.Description
 
dbConnection.ConnectionString = ConfigurationManager.ConnectionStrings("Test").ConnectionString
dbConnection.Open()
dbCommand = dbConnection.CreateCommand
dbCommand.CommandType = CommandType.StoredProcedure
dbCommand.CommandText = "S_Test"
dbCommand.Parameters.Add("@Subject", SqlDbType.VarChar).Value = subject
dbCommand.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = startDate
dbCommand.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = endDate
If Not String.IsNullOrEmpty(recurrenceRule) Then
    dbCommand.Parameters.Add("@RecurrenceRule", SqlDbType.VarChar).Value = recurrenceRule
End If
If recurrenceParentID <> 0 Then
    dbCommand.Parameters.Add("@RecurrenceParentID", SqlDbType.Int).Value = recurrenceParentID
End If
If Not String.IsNullOrEmpty(description) Then
    dbCommand.Parameters.Add("@Description", SqlDbType.VarChar).Value = description
End If
 
dbCommand.ExecuteNonQuery()
RadSchedulerTemplate.Rebind()

So, Why does not rebind?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 29 Sep 2011, 03:49 PM
Hello Shunman,

I could not find any reason why the Rebind method is not working. Please review how it is used in our online demos .

Regards,
Plamen Zdravkov
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
Plamen
Telerik team
Share this question
or