Datamanager does not show items

Hi!

I'm use a datamanager on a schedule. The data is return to client, but not show on schedule.

<ej-schedule id="Schedule1"
                width="100%"
                height="700px"
                current-view="Month"
                current-date="new DateTime(2015118)"
                time-zone="UTC +02:00"
                show-weekend="true"
                show-quick-window="false"
                menu-item-click="onMenuItemClick"
                appointment-template-id="#apptemplate"
                first-day-of-week="DayOfWeek.Monday"
                locale="hu-HU"
                is-responsive="true"
                allow-drag-and-drop="true">
    <e-schedule-tooltip-settings enable="true" template-id="#tooltipTemplate">e-schedule-tooltip-settings>
    <e-context-menu-settings enable="true">
        <e-menu-items>
            <e-appointment-collection>
                <e-appointment id="edit" text="Edit" />
                <e-appointment id="delete" text="Delete" />
            e-appointment-collection>
            <e-cells-collection>
                <e-cells id="newEvent" text="New event" />
                <e-cells id="NewEvent2" text="New alternative event" />
            e-cells-collection>
        e-menu-items>
    e-context-menu-settings>
    <e-categorize-settings enable="true">e-categorize-settings>
    <e-appointment-settings subject='"Subject"'
                            start-time='"StartTime"'
                            end-time='"EndTime"'
                            description='"Description"'
                            all-day='"AllDay"'
                            recurrence='"Recurrence"'
                            recurrence-rule='"RecurrenceRule"'>
        <e-datamanager url="@Url.Action("GetRecords","Event"new { area = "admin" })"
                        crud-url="@Url.Action("CrudResult","Event"new { area = "admin" })"/>
    e-appointment-settings>
ej-schedule>
public IActionResult GetRecords(string CurrentView, DateTime CurrentDate, string CurrentAction)
{
    List<ScheduleData> Appoint = new List<ScheduleData>();
    Appoint.Add(new ScheduleData
    {
        Id = "1",
        Subject = "Meeting",
        StartTime = new DateTime(20151110100000),
        EndTime = new DateTime(20151110110000),
        Description = "Test",
        AllDay = false,
        Recurrence = false,
        RecurrenceRule = ""
    });
 
    return Json( new { result = Appoint.ToList(), count = Appoint.Count }) ;
}
What the problem?

2 Replies

PB Peter Barasits November 9, 2017 12:19 PM UTC

Yellow line return this: 

{"result":[{"id":"1","subject":"Meeting","description":"Test","startTime":"2015-11-10T10:00:00","endTime":"2015-11-10T11:00:00","categorize":null,"roomId":null,"ownerId":null,"priority":null,"allDay":false,"recurrence":false,"recurrenceRule":""}],"count":1}

Red line return is empty value.



NR Nevitha Ravi Syncfusion Team November 9, 2017 04:48 PM UTC

Hi Peter, 

Thank you for contacting Syncfusion Support. 

The known issue “appointments not displaying on CRUD” is fixed in the latest source and for the same we have prepared the below sample for your reference. 


Kindly try the above sample if the issue persist, revert us with your version details to proceed further. 

Regards, 
Nevitha. 


Loader.
Up arrow icon