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

radscheduler appointment end date not working

1 Answer 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 10 Jan 2012, 05:28 AM
Hi,

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"
            AppointmentStyleMode="Default">

  </telerik:RadScheduler>

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")
            lst.Add(obj)          

            RadScheduler1.DataSource = lst

            RadScheduler1.DataBind()
        End If

    End Sub

class file
------------
Public Class MyScedule

    Public Property ID() As Integer
        Get
            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
        Get
            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
        Get
            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
        Get
            Return m_EndDate
        End Get
        Set(ByVal value As DateTime)
            m_EndDate = Value
        End Set
    End Property
    Private m_EndDate As DateTime
End Class

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Jan 2012, 05:11 PM
Hello,

 
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.

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
Dhamodharan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or