Data posting doesn't work when adding expand to odata DataManager

Dear Syncfusion support,

When adding expand in my query for viewing more data the post URL changes and can't post any data.

The URL changes to:
Cannot POST /odata/Issue(Customer())

My code snippet.
 <React.Fragment>
        <div className={"content-block"}>
            <ScheduleComponent
                editorTemplate={editorTemplate}
                showQuickInfo={true}
                popupOpen={onPopupOpen}
                height="950px"
                local="nl"
                currentView="WorkWeek"
                timezone="Europe/Amsterdam"
                workHours={{
                    highlight: true,
                    start: "07:00",
                    end: "18:00",
                }}
                eventSettings={{
                    fields: {
                        id: "Oid",
                        subject: { name: "Subject" },
                        startTime: { name: "StartTime" },
                        isAllDay: { name: "IsAllDay" },
                        endTime: { name: "EndTime" },
                    },
                    resourceColorField: 'Projects',
                    dataSource: new DataManager({
                        url: "/odata",
                        crossDomain: true,
                        adaptor: new ODataV4Adaptor(),
                        headers: [
                            {
                                AUTHORIZATION: `Bearer ${localStorage.getItem("token")}`,
                            },
                        ],
                    }),
                    query: new Query().from("Issue").expand('Customer'),
                }}
            >
                <ViewsDirective>
                    <ViewDirective
                        option="WorkWeek"
                        interval={1}
                        timeScale={{ enable: true, slotCount: 2 }}
                        startHour="07:00"
                        showWeekNumber={true}
                        endHour="23:00"
                    />
                    <ViewDirective option="Week" startHour="07:00" endHour="23:00" />
                    <ViewDirective
                        option="Month"
                        showWeekNumber={true}
                        showWeekend={true}
                    />
                </ViewsDirective>
                <Inject
                    services={[Day, Week, WorkWeek, Month, Agenda, Resize, DragAndDrop]}
                />
            </ScheduleComponent>
        </div>
    </React.Fragment>

With kind regards,

Vedad Piric


1 Reply 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team December 24, 2020 12:13 PM UTC

Hi Vedad, 

Greetings from Syncfusion Support. 

We have analyzed and tried to reproduce your reported problem at our end. But unfortunately, we were unable to replicate it. Since the data has been refreshed properly in UI.  


So kindly refer to the above sample and let us know the below details if the problem is not resolved. 
  • Share your use case scenario of the expand property in Scheduler
  • Try to reproduce the problem in the above sample or else
  • Share an issue reproduced sample which would help us to provide a prompt solution.

Regards, 
Balasubramanian S 


Marked as answer
Loader.
Up arrow icon