diff --git a/ej2-javascript-toc.html b/ej2-javascript-toc.html
index d59979182..89870e9cf 100644
--- a/ej2-javascript-toc.html
+++ b/ej2-javascript-toc.html
@@ -2199,6 +2199,8 @@
' +
-'ID | Price | Quantity | ' +
-'${for(detail of Order_Details)}${detail.ProductID} | ${detail.UnitPrice} | ${detail.Quantity} | ${/for}' +
-'';
var compiledFunction = ej.base.compile(template);
-var groupFn = ej.base.compile(group);
-const SERVICE_URI = 'https://services.odata.org/V4/Northwind/Northwind.svc/';
+var result = new ej.data.DataManager(data).executeLocal(new ej.data.Query().take(8));
var table = (document.getElementById('datatable'));
-new ej.data.DataManager({ url: SERVICE_URI, adaptor: new ej.data.ODataV4Adaptor })
- .executeQuery(new ej.data.Query().from('Orders').take(3).hierarchy(
- new ej.data.Query()
- .foreignKey("OrderID")
- .from("Order_Details")
- .sortBy("Quantity"),
- function () {
- // Selective loading of child elements
- return [10248, 10249, 10250]
- }
- ))
- .then((e) => {
- (e.result).forEach((data) => {
- table.appendChild(compiledFunction(data)[0]);
- table.appendChild(groupFn(data)[0]);
- });
- });
\ No newline at end of file
+result.forEach((data) => {
+ table.appendChild(compiledFunction(data)[0]);
+});
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/data/getting-started-cs1/systemjs.config.js b/ej2-javascript/code-snippet/data/getting-started-cs1/systemjs.config.js
index 28dd2c965..69129aff2 100644
--- a/ej2-javascript/code-snippet/data/getting-started-cs1/systemjs.config.js
+++ b/ej2-javascript/code-snippet/data/getting-started-cs1/systemjs.config.js
@@ -35,6 +35,5 @@ System.config({
});
System.import('index.ts').catch(console.error.bind(console)).then(function () {
- document.getElementById('loader').style.display = "none";
document.getElementById('container').style.visibility = "visible";
});
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/data/getting-started-cs1/ts/index.html b/ej2-javascript/code-snippet/data/getting-started-cs1/ts/index.html
index 0b467b2b4..e518c1112 100644
--- a/ej2-javascript/code-snippet/data/getting-started-cs1/ts/index.html
+++ b/ej2-javascript/code-snippet/data/getting-started-cs1/ts/index.html
@@ -23,7 +23,6 @@
- Loading....
diff --git a/ej2-javascript/code-snippet/data/getting-started-cs16/es5-datasource.js b/ej2-javascript/code-snippet/data/getting-started-cs16/es5-datasource.js
deleted file mode 100644
index 955466c83..000000000
--- a/ej2-javascript/code-snippet/data/getting-started-cs16/es5-datasource.js
+++ /dev/null
@@ -1,76 +0,0 @@
-var data = [
- {
- OrderID: 10248, CustomerID: 'VINET', EmployeeID: 5, OrderDate: new Date(8364186e5),
- ShipName: 'Vins et alcools Chevalier', ShipCity: 'Reims', ShipAddress: '59 rue de l Abbaye',
- ShipRegion: 'CJ', ShipPostalCode: '51100', ShipCountry: 'France', Freight: 32.38, Verified: !0
- },
- {
- OrderID: 10249, CustomerID: 'TOMSP', EmployeeID: 6, OrderDate: new Date(836505e6),
- ShipName: 'Toms Spezialitäten', ShipCity: 'Münster', ShipAddress: 'Luisenstr. 48',
- ShipRegion: 'CJ', ShipPostalCode: '44087', ShipCountry: 'Germany', Freight: 11.61, Verified: !1
- },
- {
- OrderID: 10250, CustomerID: 'HANAR', EmployeeID: 4, OrderDate: new Date(8367642e5),
- ShipName: 'Hanari Carnes', ShipCity: 'Rio de Janeiro', ShipAddress: 'Rua do Paço, 67',
- ShipRegion: 'RJ', ShipPostalCode: '05454-876', ShipCountry: 'Brazil', Freight: 65.83, Verified: !0
- },
- {
- OrderID: 10251, CustomerID: 'VICTE', EmployeeID: 3, OrderDate: new Date(8367642e5),
- ShipName: 'Victuailles en stock', ShipCity: 'Lyon', ShipAddress: '2, rue du Commerce',
- ShipRegion: 'CJ', ShipPostalCode: '69004', ShipCountry: 'France', Freight: 41.34, Verified: !0
- },
- {
- OrderID: 10252, CustomerID: 'SUPRD', EmployeeID: 4, OrderDate: new Date(8368506e5),
- ShipName: 'Suprêmes délices', ShipCity: 'Charleroi', ShipAddress: 'Boulevard Tirou, 255',
- ShipRegion: 'CJ', ShipPostalCode: 'B-6000', ShipCountry: 'Belgium', Freight: 51.3, Verified: !0
- },
- {
- OrderID: 10253, CustomerID: 'HANAR', EmployeeID: 3, OrderDate: new Date(836937e6),
- ShipName: 'Hanari Carnes', ShipCity: 'Rio de Janeiro', ShipAddress: 'Rua do Paço, 67',
- ShipRegion: 'RJ', ShipPostalCode: '05454-876', ShipCountry: 'Brazil', Freight: 58.17, Verified: !0
- },
- {
- OrderID: 10254, CustomerID: 'CHOPS', EmployeeID: 5, OrderDate: new Date(8370234e5),
- ShipName: 'Chop-suey Chinese', ShipCity: 'Bern', ShipAddress: 'Hauptstr. 31',
- ShipRegion: 'CJ', ShipPostalCode: '3012', ShipCountry: 'Switzerland', Freight: 22.98, Verified: !1
- },
- {
- OrderID: 10255, CustomerID: 'RICSU', EmployeeID: 9, OrderDate: new Date(8371098e5),
- ShipName: 'Richter Supermarkt', ShipCity: 'Genève', ShipAddress: 'Starenweg 5',
- ShipRegion: 'CJ', ShipPostalCode: '1204', ShipCountry: 'Switzerland', Freight: 148.33, Verified: !0
- },
- {
- OrderID: 10256, CustomerID: 'WELLI', EmployeeID: 3, OrderDate: new Date(837369e6),
- ShipName: 'Wellington Importadora', ShipCity: 'Resende', ShipAddress: 'Rua do Mercado, 12',
- ShipRegion: 'SP', ShipPostalCode: '08737-363', ShipCountry: 'Brazil', Freight: 13.97, Verified: !1
- },
- {
- OrderID: 10257, CustomerID: 'HILAA', EmployeeID: 4, OrderDate: new Date(8374554e5),
- ShipName: 'HILARION-Abastos', ShipCity: 'San Cristóbal', ShipAddress: 'Carrera 22 con Ave. Carlos Soublette #8-35',
- ShipRegion: 'Táchira', ShipPostalCode: '5022', ShipCountry: 'Venezuela', Freight: 81.91, Verified: !0
- },
- {
- OrderID: 10258, CustomerID: 'ERNSH', EmployeeID: 1, OrderDate: new Date(8375418e5),
- ShipName: 'Ernst Handel', ShipCity: 'Graz', ShipAddress: 'Kirchgasse 6',
- ShipRegion: 'CJ', ShipPostalCode: '8010', ShipCountry: 'Austria', Freight: 140.51, Verified: !0
- },
- {
- OrderID: 10259, CustomerID: 'CENTC', EmployeeID: 4, OrderDate: new Date(8376282e5),
- ShipName: 'Centro comercial Moctezuma', ShipCity: 'México D.F.', ShipAddress: 'Sierras de Granada 9993',
- ShipRegion: 'CJ', ShipPostalCode: '05022', ShipCountry: 'Mexico', Freight: 3.25, Verified: !1
- },
- {
- OrderID: 10260, CustomerID: 'OTTIK', EmployeeID: 4, OrderDate: new Date(8377146e5),
- ShipName: 'Ottilies Käseladen', ShipCity: 'Köln', ShipAddress: 'Mehrheimerstr. 369',
- ShipRegion: 'CJ', ShipPostalCode: '50739', ShipCountry: 'Germany', Freight: 55.09, Verified: !0
- },
- {
- OrderID: 10261, CustomerID: 'QUEDE', EmployeeID: 4, OrderDate: new Date(8377146e5),
- ShipName: 'Que Delícia', ShipCity: 'Rio de Janeiro', ShipAddress: 'Rua da Panificadora, 12',
- ShipRegion: 'RJ', ShipPostalCode: '02389-673', ShipCountry: 'Brazil', Freight: 3.05, Verified: !1
- },
- {
- OrderID: 10262, CustomerID: 'RATTC', EmployeeID: 8, OrderDate: new Date(8379738e5),
- ShipName: 'Rattlesnake Canyon Grocery', ShipCity: 'Albuquerque', ShipAddress: '2817 Milton Dr.',
- ShipRegion: 'NM', ShipPostalCode: '87110', ShipCountry: 'USA', Freight: 48.29, Verified: !0
- }];
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/data/getting-started-cs16/index.js b/ej2-javascript/code-snippet/data/getting-started-cs16/index.js
index 663759b4c..7c490ef94 100644
--- a/ej2-javascript/code-snippet/data/getting-started-cs16/index.js
+++ b/ej2-javascript/code-snippet/data/getting-started-cs16/index.js
@@ -2,7 +2,7 @@ var template = '${OrderID} | ${CustomerID} | ${EmployeeID}
var compiledFunction = ej.base.compile(template);
-const SERVICE_URI = 'https://services.odata.org/V4/Northwind/Northwind.svc/';
+const SERVICE_URI = 'https://services.odata.org/V4/Northwind/Northwind.svc/';
var table = (document.getElementById('datatable'));
diff --git a/ej2-javascript/code-snippet/data/getting-started-cs16/index.ts b/ej2-javascript/code-snippet/data/getting-started-cs16/index.ts
index afc864dfd..7c9b66bf1 100644
--- a/ej2-javascript/code-snippet/data/getting-started-cs16/index.ts
+++ b/ej2-javascript/code-snippet/data/getting-started-cs16/index.ts
@@ -1,17 +1,17 @@
-import { DataManager, Query, ReturnOption, ODataAdaptor } from '@syncfusion/ej2-data';
+import { DataManager, Query, ReturnOption, ODataV4Adaptor } from '@syncfusion/ej2-data';
import { compile } from '@syncfusion/ej2-base';
let template: string = ' | ${OrderID} | ${CustomerID} | ${EmployeeID} | ';
let compiledFunction: Function = compile(template);
-const SERVICE_URI: string = 'https://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc';
+const SERVICE_URI: string = 'https://services.odata.org/V4/Northwind/Northwind.svc/';
let table: HTMLElement = (document.getElementById('datatable'));
-new DataManager({ url: SERVICE_URI, adaptor: new ODataAdaptor })
+new DataManager({ url: SERVICE_URI, adaptor: new ODataV4Adaptor })
.executeQuery(new Query().from('Orders').take(8)).then((e: ReturnOption) => {
(
|