Do you have a Scheduler sample with the DataManager using ODataV4Adaptor and ASP NET Core 3.1 for the API and client?

Good day

Do you have a Scheduler sample with the DataManager using ODataV4Adaptor and ASP NET Core 3.1 for the API and client? The samples that I saw use ASP .NET not core.

Thank you

5 Replies 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team February 16, 2021 11:06 AM UTC

Hi Ronald, 

Greetings from Syncfusion support. 

We have validated your reported query at our end and for the same, we have prepared a sample with the ODataV4 service that can be downloaded from the below link. 
 
[Index.cshtml] 
@using Syncfusion.EJ2 
@using Syncfusion.EJ2.Schedule 
 
@{ 
    var dataManager = new DataManager() 
    { 
        Url = "http://localhost:25255/odata", 
        Adaptor = "ODataV4Adaptor", 
        CrossDomain = true 
    }; 
} 
 
<ejs-schedule id="schedule" width="100%" height="550"> 
    <e-schedule-eventsettings dataSource="dataManager" query="new ej.data.Query().from('EventDatas')"> 
    </e-schedule-eventsettings> 
</ejs-schedule> 


Kindly try the above sample and get back to us if you need any further assistance. 

Regards, 
Ravikumar Venkatesan 



RW Ronald Walcott February 16, 2021 10:39 PM UTC

Good day

The provided example OData service does not use ASP NET Core. 

I am trying to determine if the schedule can use an OData service based on ASP NET Core as I cannot get a POST request generated by the schedule to save data. The schedule seems to generate a batch request when saving data but the batch request doesn't seem to be recognized by an ASP NET Core based OData service. Shouldn't the batch request for the POST endpoint be created with the POST endpoint URL or am I not understanding how OData batching works with ASP NET Core.

Thank you 


HB Hareesh Balasubramanian Syncfusion Team February 17, 2021 11:19 AM UTC

Hi Ronald, 
  
Thanks for the update. 
  
We have validated your shared query “In ASP NET Core cannot get a POST request generated by the schedule to save data” at our end and regret to let you know that your requirement to perform CRUD actions with ODataV4 Adaptor in ASP.Net Core platform is not feasible since currently there is no support for DataManager to handle batch actions with ODataV4 Adaptor in ASP.Net Core. We have already logged the feature request for this requirement to provide batch actions in WebApi and OData Adaptors which can be tracked from the below link. 
 
 
In the meantime, kindly make use of the service in .Net frame work and the properly working CURD sample can be downloaded from our previously shared link. 
   
Please try the sample shared and get back to us if you need any further assistance. 
  
Regards, 
Hareesh 



RW Ronald Walcott February 17, 2021 03:47 PM UTC

Thank you. 

I will update in the controller instead using the CRUD methods that are in the examples because I have to use NET Core 


HB Hareesh Balasubramanian Syncfusion Team February 18, 2021 09:17 AM UTC

Hi Ronald, 

Thanks for your update. 

Please try out our sample and let us know if you need any further assistance.  

Note: Since the ASP.NET Core with Web API/Odata Adaptor batch is not yet supported by ASP.NET Core v3+. Hence it is not feasible from us to support batch handling with Web API/Odata, until ASP.NET Core provide the support for the proper batch handler. Please find the general GitHub link for your reference.  


And for the same, we have considered as feature request once the ASP .NET Core provided the support for the batch handler.  

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon