Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Mar 17, 2023
1 parent 61f2079 commit 6546135
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ where Lodata could be a great fit for your application:

- Developing **single page applications** and **mobile applications** with OData-supporting enterprise UI frameworks such as
[Sencha ExtJS](https://docs.sencha.com/extjs/latest/modern/Ext.data.proxy.Rest.html),
[DevExtreme](https://js.devexpress.com/Documentation/Guide/Data_Binding/Specify_a_Data_Source/OData/) and
[Kendo UI](https://docs.telerik.com/kendo-ui/framework/datasource/basic-usage).
[DevExtreme](https://js.devexpress.com/Documentation/Guide/Data_Binding/Specify_a_Data_Source/OData/),
[Kendo UI](https://docs.telerik.com/kendo-ui/framework/datasource/basic-usage) and
[Syncfusion](https://ej2.syncfusion.com/documentation/data/adaptors/#odatav4-adaptor).
- Making live connections to **business intelligence** tools
such as [Excel](https://docs.microsoft.com/en-us/power-query/connectors/odatafeed),
[PowerBI](https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-connect-odata),
Expand Down
1 change: 1 addition & 0 deletions doc/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ module.exports = {
'clients/salesforce',
'clients/sap',
'clients/devextreme',
'clients/syncfusion',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion doc/clients/devextreme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DevExtreme (by DevExpress) supports OData as a [data source](https://js.devexpre
However, it supports only OData 4.0, not OData 4.01. To support Lodata you must send the "OData-Version" header with every request.

Alternatively, you can configure Lodata to default to OData 4.0 if the client does not specify a version by modifying the
[configuration](/getting-started/configuration.md)
[configuration](/getting-started/configuration.md).

This Vue example shows how to send the header, and load data into a DxDataGrid.

Expand Down
22 changes: 22 additions & 0 deletions doc/clients/syncfusion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Syncfusion

Syncfusion supports OData as a [data source](https://ej2.syncfusion.com/documentation/data/adaptors/#odatav4-adaptor).
However, it supports only OData 4.0, not OData 4.01. To support Lodata you must send the "OData-Version" header with
every request.

Alternatively, you can configure Lodata to default to OData 4.0 if the client does not specify a version by modifying
the [configuration](/getting-started/configuration.md).

This example shows how to send the header. The same technique can be applied to any component using `ODataAdaptor`.

```js
import { DataManager, ODataAdaptor, Query, ReturnOption } from '@syncfusion/ej2-data';

const SERVICE_URI: string = 'http://localhost:8000/odata/Users';

new DataManager({ url: SERVICE_URI, adaptor: new ODataAdaptor, headers:[{ 'odata-version': '4.0' }] })
.executeQuery(new Query())
.then((e: ReturnOption) => {
// get result from e.result
});
```
5 changes: 3 additions & 2 deletions doc/introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ where Lodata could be a great fit for your application:

- Developing **single page applications** and **mobile applications** with OData-supporting enterprise UI frameworks such as
[Sencha ExtJS](https://docs.sencha.com/extjs/latest/modern/Ext.data.proxy.Rest.html),
[DevExtreme](https://js.devexpress.com/Documentation/Guide/Data_Binding/Specify_a_Data_Source/OData/) and
[Kendo UI](https://docs.telerik.com/kendo-ui/framework/datasource/basic-usage).
[DevExtreme](https://js.devexpress.com/Documentation/Guide/Data_Binding/Specify_a_Data_Source/OData/),
[Kendo UI](https://docs.telerik.com/kendo-ui/framework/datasource/basic-usage) and
[Syncfusion](https://ej2.syncfusion.com/documentation/data/adaptors/#odatav4-adaptor)
- Making live connections to **business intelligence** tools
such as [Excel](https://docs.microsoft.com/en-us/power-query/connectors/odatafeed),
[PowerBI](https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-connect-odata),
Expand Down

0 comments on commit 6546135

Please sign in to comment.