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