radscheduler appointment end date not working

2 posts, 0 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 09 Jan 2012 Link to this post


    I am using radscheduler. date binding in page load. start date working fine. but appointment panel not continued to end date. here i attached my code.

    i have attached image file also. please check and let me know.

      <telerik:RadScheduler ID="RadScheduler1" runat="server" DataKeyField="ID" DataSubjectField="Subject"
        DataStartField="StartDate" DataEndField="EndDate" SelectedView="MonthView"        
                Reminders-Enabled="true"  RowHeight="30px"


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
                Dim lst As New List(Of MyScedule)()
                Dim obj As New MyScedule()
                obj.ID = 1
                obj.Subject = "my Subject"
                obj.StartDate = Convert.ToDateTime("01-11-2012")
                obj.EndDate = Convert.ToDateTime("01-12-2012")

                RadScheduler1.DataSource = lst

            End If

        End Sub

    class file
    Public Class MyScedule

        Public Property ID() As Integer
                Return m_ID
            End Get
            Set(ByVal value As Integer)
                m_ID = value
            End Set
        End Property
        Private m_ID As Integer
        Public Property Subject() As String
                Return m_Subject
            End Get
            Set(ByVal value As String)
                m_Subject = Value
            End Set
        End Property
        Private m_Subject As String
        Public Property StartDate() As DateTime
                Return m_StartDate
            End Get
            Set(ByVal value As DateTime)
                m_StartDate = Value
            End Set
        End Property
        Private m_StartDate As DateTime
        Public Property EndDate() As DateTime
                Return m_EndDate
            End Get
            Set(ByVal value As DateTime)
                m_EndDate = Value
            End Set
        End Property
        Private m_EndDate As DateTime
    End Class
  2. Plamen
    Plamen avatar
    3079 posts

    Posted 12 Jan 2012 Link to this post


    This looks like this is the default behavior since in this case the appointment starts at midnight 11th and ends at midnight 12th it should take only one cell.

    Hope this will be helpful.

    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