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. Image for the cookie policy date

Horizontal orientation not displaying appointments

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

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team July 6, 2016 11:34 AM UTC

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   
 



MM Mahindra Morar July 8, 2016 05:40 AM UTC

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



MP Mahesh Palanisamy Syncfusion Team July 11, 2016 01:39 PM UTC

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 


Loader.
Up arrow icon