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.
Unfortunately, activation email could not send to your email. Please try again.

Horizontal orientation not displaying appointments

Thread ID:

Created:

Updated:

Platform:

Replies:

124864 Jul 5,2016 06:06 AM Jul 11,2016 09:39 AM ASP.NET MVC 3
loading
Tags: Schedule
Mahindra Morar
Asked On July 5, 2016 06:06 AM

Hi,

When I set the orientation to vertical view the scheduler displays the appointments correctly. 

However setting the orientation property to horizontal does not display the appoints.  But when clicking the Agenda button, all the appointments are shown.
Do you know what could be causing this behavior? 

I have attached the screen shots of both orientation views.

Also below is the code for the scheduler which I am using.

@(Html.EJ().Schedule("Schedule1")
        .Width("100%")
        .Height("525px")
             .Orientation(Orientation.Horizontal)
        .CurrentDate(new DateTime(2014, 5, 3))    
        .AppointmentSettings(fields => fields.Datasource(ds => ds.URL("/AllocationMaintenance/GetDataAll").Adaptor(AdaptorType.UrlAdaptor))
            .Id("Id")
                .Subject("Subject")
                    .StartTime("StartTime")
                        .EndTime("EndTime")       
            .Recurrence("Recurrence")
            .RecurrenceRule("RecurrenceRule")
            .ResourceFields("ProductGroupCode,ProductCode")     
            )
)

Thanks for your help.

Attachment: Screen_dumps_4a363623.zip

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 6, 2016 07:34 AM

Hi Mahindra,   
   
Thank you for contacting Syncfusion support.   
   
We suspect that owner/room id is not correctly with the appointment(s) which may be the cause for the issue. We have prepared a sample for your requirement “Horizontal resource grouping sample” which can be download from the following location:   
   
In the above sample, Scheduler is rendered with resource grouping in horizontal mode and appointments are displayed in all view. If the issue still persists at your end, then provide us the issue reproducing sample.  
  
Regards,   
Karthigeyan   
 


Mahindra Morar
Replied On July 8, 2016 01:40 AM

Hi,
Would you please confirm if the ResourceFields for Id and GroupId support alphanumeric characters as the documentation specifies these values as string type.

When I used alphanumeric characters as shown below for the GroupId, the scheduler dose not display the resources,

  var owners = new List<Web.Usertronics.Ecommerce.Models.ResourceFields>();
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1a", Color = "#ffaa00", Id = "11", Text = "Nancy" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1a", Color = "#f8e398", Id = "12", Text = "Steven" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1a", Color = "#f8e398", Id = "13", Text = "Bob" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "2", Color = "#f8e398", Id = "14", Text = "John" });

            var rooms = new List<Web.Usertronics.Ecommerce.Models.ResourceFields>();
            rooms.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { Text = "Room 1", Id = "1a", Color = "#56ca85", GroupId = null });
            rooms.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { Text = "Room 2", Id = "2", Color = "#56ca85", GroupId = null });

    var resources = new List<Web.Usertronics.Ecommerce.Models.ScheduleData>();
            resources.Add(new Ecommerce.Models.ScheduleData { StartTime = new DateTime(2015, 11, 10, 9, 00, 00), EndTime = new DateTime(2015, 11, 10, 10, 00, 00), Id = "1", OwnerId = "11", RoomId = "1a", Subject = "Hello" });
            resources.Add(new Ecommerce.Models.ScheduleData { StartTime = new DateTime(2015, 11, 10, 10, 30, 00), EndTime = new DateTime(2015, 11, 10, 13, 00, 00), Id = "2", OwnerId = "11", RoomId = "1a", Subject = "Goodby" });



When I change the GroupId to numeric values the scheduler displays the appointments correctly as shown below.

  var owners = new List<Web.Usertronics.Ecommerce.Models.ResourceFields>();
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1", Color = "#ffaa00", Id = "11", Text = "Nancy" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1", Color = "#f8e398", Id = "12", Text = "Steven" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "1", Color = "#f8e398", Id = "13", Text = "Bob" });
            owners.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { GroupId = "2", Color = "#f8e398", Id = "14", Text = "John" });

            var rooms = new List<Web.Usertronics.Ecommerce.Models.ResourceFields>();
            rooms.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { Text = "Room 1", Id = "1", Color = "#56ca85", GroupId = null });
            rooms.Add(new Web.Usertronics.Ecommerce.Models.ResourceFields { Text = "Room 2", Id = "2", Color = "#56ca85", GroupId = null });

  var resources = new List<Web.Usertronics.Ecommerce.Models.ScheduleData>();
            resources.Add(new Ecommerce.Models.ScheduleData { StartTime = new DateTime(2015, 11, 10, 9, 00, 00), EndTime = new DateTime(2015, 11, 10, 10, 00, 00), Id = "1", OwnerId = "11", RoomId = "1", Subject = "Hello" });


Thanks


Mahesh Palanisamy [Syncfusion]
Replied On July 11, 2016 09:39 AM

Hi Mahindra, 

Thanks for contacting Syncfusion support. 

We have created an incident for the reported problem in this query and would request you to have a follow up with the incident 160203 for further update on this. 
 
Please let us know, if you need any other further assistance on this. 

Regards 
Mahesh 


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.

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.

;