Unplanned
Last Updated: 14 Dec 2023 14:45 by Martin
Martin
Created on: 14 Dec 2023 14:45
Category: Data Source
Type: Feature Request
1
Singular Record Flag - OData V4

Hi Team,

I would like to request a way to use the Kendo UI DataSource with a flag set to state that it is returning a singular record.  For my case, my dataSource is using OData V4, and it requires utilizing an Ajax request to retrieve an individual entity. 

DataSource

      var dataSource = new kendo.data.DataSource({
        type: "odata-v4",
        transport: {
          read: function(options) {
            $.ajax({
              //makes a request for an individual entity by ID
              url: "https://demos.telerik.com/kendo-ui/service-v4/odata/Products(1)",
              //....
          }
        },
        //....
      });

It would be nice if there was a better way to do this.

Thank you!

0 comments