We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't map EndTime for my object

Thread ID:

Created:

Updated:

Platform:

Replies:

120674 Oct 2,2015 10:06 AM UTC Oct 5,2015 11:24 AM UTC Windows Phone 1
loading
Tags: SfSchedule
Evgeny
Asked On October 2, 2015 10:06 AM UTC

Good day!
I try to show my collections of event in SfSchedule element. So it's work good, but end time is always the same and it's around current time. So I have many events that starts different time but ends by the same time.
This is xaml code:

<schedule:SfSchedule x:Name="Scheduler" ScheduleType="Day"  ItemsSource="{Binding ScheduleEvents}" AllowEditing="False" BorderBrush="Blue" NonWorkingHourBrush="Blue" AppointmentSelectionBrush="Aqua" CellSelectionBrush="AntiqueWhite" Foreground="Blue" MajorTickLabelStroke="Blue" MinorTickLabelStroke="Blue" DayViewVerticalLineStroke="Blue" Background="White" >
                    <schedule:SfSchedule.AppointmentMapping>
                        <schedule:ScheduleAppointmentMapping SubjectMapping="EventDescription" StartTimeMapping="StartDate" EndTimeMapping="EndDate" />
                    </schedule:SfSchedule.AppointmentMapping>
                </schedule:SfSchedule>

this is object to map:

public class ScheduleEvent : Entity
    {
        public string Id { get; set; }
        public DateTime? AlarmDate { get; set; }
        public string ClientName { get; set; }
        public string EventId { get; set; }
        public IEnumerable<ItemDescription> Items { get; set; }
        public DateTime StartDate { get; set; }

        // Uses for view only
        public DateTime EndDate { get; set; }
        // Uses for view only
        public string EventDescription { get; set; }

        [ImplementPropertyChanged]
        public class ItemDescription
        {
            public string Id { get; set; }
            public string Category { get; set; }
            public string Name { get; set; }
        }
    }

Vigneshkumar Ramasamy [Syncfusion]
Replied On October 5, 2015 11:24 AM UTC

Hi Evgeny,
 
Thanks for using Syncfusion product.
 
We are unable to reproduce the issue “Appointment EndTime is always same while Mapping ItemsSource”. Could you please provide the details about the assembly version that you had used or else if possible modify the above sample to reproduce the issue and update us? It would be helpful to provide a proper solution. Refer to the following sample.
Regards
Vigneshkumar R


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;