Skip to content

Commit bd56f32

Browse files
fix some issues
1 parent 15ba84f commit bd56f32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1131
-1038
lines changed

ASP.NET Core/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h3>DataGrid - Select multiple items and drag'n'drop</h3>
33
<div id="toggle-container">
44
<span>Clear selection after drop</span>
5-
@(Html.DevExtreme().Switch().ID("clearAfterDropSwitch"))
5+
@(Html.DevExtreme().Switch().ID("clear-after-drop-switch"))
66
</div>
77
</div>
88
@(Html.DevExtreme().TabPanel()

ASP.NET Core/package-lock.json

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASP.NET Core/wwwroot/css/Site.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body {
1818
padding-top: 20px;
1919
}
2020

21-
#clearAfterDropSwitch {
21+
#clear-after-drop-switch {
2222
vertical-align: text-bottom;
2323
}
2424

ASP.NET Core/wwwroot/js/GridLocal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
return column.lookup ? column.lookup.calculateCellValue(cellValue) : cellValue;
6262
},
6363
shouldClearSelection: function() {
64-
return $("#clearAfterDropSwitch").dxSwitch("option", "value");
64+
return $("#clear-after-drop-switch").dxSwitch("option", "value");
6565
}
6666
}

ASP.NET Core/wwwroot/js/GridRemote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
return column.lookup ? column.lookup.calculateCellValue(cellValue) : cellValue;
6666
},
6767
shouldClearSelection: function () {
68-
return $("#clearAfterDropSwitch").dxSwitch("option", "value");
68+
return $("#clear-after-drop-switch").dxSwitch("option", "value");
6969
},
7070
beforeSend: function(method, ajaxOptions) {
7171
ajaxOptions.xhrFields = { withCredentials: true };

Angular/package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Angular/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@angular/router": "^18.0.3",
2525
"devextreme": "24.2.3",
2626
"devextreme-angular": "24.2.3",
27+
"devextreme-aspnet-data-nojquery": "5.1.0",
2728
"rxjs": "~7.8.0",
2829
"tslib": "^2.3.0",
2930
"zone.js": "~0.14.7"

Angular/src/app/app.component.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@
22
<div class="demo-header">
33
<h3>DataGrid - Select multiple items and drag'n'drop</h3>
44
<div id="toggle-container">
5-
<span>Clear selection after drop</span>
6-
<dx-switch id="clearAfterDropSwitch" [(value)]="clearSelectionAfterDrop"></dx-switch>
5+
<span>Clear selection after drop</span>
6+
<dx-switch
7+
id="clear-after-drop-switch"
8+
[(value)]="clearSelectionAfterDrop"
9+
></dx-switch>
710
</div>
811
</div>
912
<dx-tab-panel [deferRendering]="false">
1013
<dxi-item title="Local Data">
1114
<div *dxTemplate>
12-
<grid-local-data [shouldClearSelection]="clearSelectionAfterDrop" ></grid-local-data>
15+
<grid-local-data
16+
[shouldClearSelection]="clearSelectionAfterDrop"
17+
></grid-local-data>
1318
</div>
1419
</dxi-item>
1520
<dxi-item title="Remote Data">
1621
<div *dxTemplate>
17-
<grid-remote-data [shouldClearSelection]="clearSelectionAfterDrop"></grid-remote-data>
22+
<grid-remote-data
23+
[shouldClearSelection]="clearSelectionAfterDrop"
24+
></grid-remote-data>
1825
</div>
1926
</dxi-item>
2027
</dx-tab-panel>

Angular/src/app/app.component.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
margin: 50px;
33
width: 90vw;
44
}
5+
56
.demo-header {
67
display: flex;
78
justify-content: space-between;
89
}
10+
911
.tab-item-content {
1012
margin: auto;
1113
}
14+
1215
#toggle-container {
1316
padding-top: 20px;
1417
}
15-
#clearAfterDropSwitch {
18+
19+
#clear-after-drop-switch {
1620
vertical-align: text-bottom;
1721
}
22+
1823
#toggle-container span {
1924
padding-right: 10px;
2025
}

Angular/src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ describe('AppComponent', () => {
66
beforeEach(async () => {
77
await TestBed.configureTestingModule({
88
imports: [
9-
RouterTestingModule
9+
RouterTestingModule,
1010
],
1111
declarations: [
12-
AppComponent
12+
AppComponent,
1313
],
1414
}).compileComponents();
1515
});
@@ -20,7 +20,7 @@ describe('AppComponent', () => {
2020
expect(app).toBeTruthy();
2121
});
2222

23-
it(`should have as title 'angular-test'`, () => {
23+
it('should have as title \'angular-test\'', () => {
2424
const fixture = TestBed.createComponent(AppComponent);
2525
const app = fixture.componentInstance;
2626
expect(app.title).toEqual('angular-test');

0 commit comments

Comments
 (0)