Skip to content

Commit 2576867

Browse files
Integrated latest changes at 09-09-2025 10:31:08 AM
1 parent 73c0a92 commit 2576867

File tree

13 files changed

+22
-28
lines changed

13 files changed

+22
-28
lines changed

ej2-javascript/code-snippet/treegrid/error-handling/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ej.treegrid.TreeGrid.Inject(ej.treegrid.Edit);
22

33
var treeGridObj = new ej.treegrid.TreeGrid({
4-
dataSource: window.sampleData,
4+
dataSource: sampleData,
55
childMapping: 'subtasks',
66
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true},
77
treeColumnIndex: 1,

ej2-javascript/code-snippet/treegrid/tree-grid-cs1/es5-datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* TreeGrid DataSource
33
*/
44

5-
window.sampleData = [
5+
var sampleData = [
66
{
77
taskID: 1,
88
taskName: 'Planning',

ej2-javascript/code-snippet/treegrid/tree-grid-cs1/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page);
22
var treeGridObj = new ej.treegrid.TreeGrid({
3-
dataSource: window.sampleData,
3+
dataSource: sampleData,
44
childMapping: 'subtasks',
55
treeColumnIndex: 1,
66
allowPaging: true,

ej2-javascript/code-snippet/treegrid/tree-grid-cs2/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page, ej.treegrid.Sort);
22
var treeGridObj = new ej.treegrid.TreeGrid({
3-
dataSource: window.sortData,
3+
dataSource: sortData,
44
childMapping: 'subtasks',
55
treeColumnIndex: 1,
66
allowSorting: true,
@@ -14,5 +14,4 @@ var treeGridObj = new ej.treegrid.TreeGrid({
1414
],
1515
height: 260
1616
});
17-
treeGridObj.appendTo('#TreeGrid');
18-
17+
treeGridObj.appendTo('#TreeGrid');

ej2-javascript/code-snippet/treegrid/tree-grid-cs3/es5-datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* TreeGrid DataSource
33
*/
44

5-
window.sampleData = [
5+
var sampleData = [
66
{
77
taskID: 1,
88
taskName: 'Planning',

ej2-javascript/code-snippet/treegrid/tree-grid-cs3/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { sampleData } from './es5-datasource.js';
21
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page, ej.treegrid.Sort, ej.grids.Filter);
32
var treeGridObj = new ej.treegrid.TreeGrid({
4-
dataSource: window.sampleData,
3+
dataSource: sampleData,
54
childMapping: 'subtasks',
65
treeColumnIndex: 1,
76
allowFiltering: true,

ej2-javascript/code-snippet/treegrid/tree-grid-cs4/es5-datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* TreeGrid DataSource
33
*/
44

5-
window.sampleData = [
5+
var sampleData = [
66
{
77
taskID: 1,
88
taskName: 'Planning',

ej2-javascript/code-snippet/treegrid/tree-grid-cs4/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { sampleData } from './es5-datasource.js';
1+
22
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page, ej.treegrid.Sort, ej.grids.Filter);
33
var treeGridObj = new ej.treegrid.TreeGrid({
4-
dataSource: window.sampleData,
4+
dataSource: sampleData,
55
childMapping: 'subtasks',
66
treeColumnIndex: 1,
77
allowFiltering: true,

ej2-javascript/code-snippet/treegrid/tree-grid-cs5/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { sampleData } from './es5-datasource.js';
21
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page);
32
var treeGridObj = new ej.treegrid.TreeGrid({
43
dataSource: sampleData,

ej2-javascript/code-snippet/treegrid/tree-grid-cs6/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sortData } from './es5-datasource.js';
1+
22
ej.treegrid.TreeGrid.Inject(ej.treegrid.Page, ej.treegrid.Sort);
33
var treeGridObj = new ej.treegrid.TreeGrid({
44
dataSource: sortData,

0 commit comments

Comments
 (0)