diff --git a/README.md b/README.md index 57d94394f..189b27b4a 100644 --- a/README.md +++ b/README.md @@ -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), diff --git a/doc/.vuepress/config.js b/doc/.vuepress/config.js index 32fdb88f5..b39cc67a3 100644 --- a/doc/.vuepress/config.js +++ b/doc/.vuepress/config.js @@ -205,6 +205,7 @@ module.exports = { 'clients/salesforce', 'clients/sap', 'clients/devextreme', + 'clients/syncfusion', ], }, { diff --git a/doc/clients/devextreme.md b/doc/clients/devextreme.md index e23517888..441e75adc 100644 --- a/doc/clients/devextreme.md +++ b/doc/clients/devextreme.md @@ -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. diff --git a/doc/clients/syncfusion.md b/doc/clients/syncfusion.md new file mode 100644 index 000000000..3726938a7 --- /dev/null +++ b/doc/clients/syncfusion.md @@ -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 + }); +``` \ No newline at end of file diff --git a/doc/introduction/README.md b/doc/introduction/README.md index 24587e294..203421000 100644 --- a/doc/introduction/README.md +++ b/doc/introduction/README.md @@ -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),