Rebind does not work.

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

    Posted 27 Sep 2011 Link to this post

    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?
  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 29 Sep 2011 Link to this post

    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
Back to Top