SelectBoxItems = [
+ new SelectBoxItem {
+ ID = 1,
+ Name = "Banana",
+ Category = "Fruits",
+ },
+ new SelectBoxItem {
+ ID = 2,
+ Name = "Cucumber",
+ Category = "Vegetables",
+ },
+ new SelectBoxItem {
+ ID = 3,
+ Name = "Apple",
+ Category = "Fruits",
+ },
+ new SelectBoxItem {
+ ID = 4,
+ Name = "Tomato",
+ Category = "Vegetables",
+ },
+ new SelectBoxItem {
+ ID = 5,
+ Name = "Apricot",
+ Category = "Fruits",
+ },
+ ];
+
+}
diff --git a/ASP.NET Core/Models/SelectBoxItem.cs b/ASP.NET Core/Models/SelectBoxItem.cs
new file mode 100644
index 0000000..245e5a5
--- /dev/null
+++ b/ASP.NET Core/Models/SelectBoxItem.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ASP_NET_Core.Models;
+public class SelectBoxItem {
+ public int ID { get; set; }
+ public string Name { get; set; }
+ public string Category { get; set; }
+}
diff --git a/ASP.NET Core/Program.cs b/ASP.NET Core/Program.cs
new file mode 100644
index 0000000..1539edf
--- /dev/null
+++ b/ASP.NET Core/Program.cs
@@ -0,0 +1,37 @@
+using Microsoft.AspNetCore.Builder;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+
+namespace ASP_NET_Core;
+public class Program {
+ public static void Main(string[] args) {
+ var builder = WebApplication.CreateBuilder(args);
+
+ // Add services to the container.
+ builder.Services
+ .AddControllersWithViews()
+ .AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);
+
+ var app = builder.Build();
+
+ // Configure the HTTP request pipeline.
+ if(app.Environment.IsDevelopment()) {
+ app.UseDeveloperExceptionPage();
+ } else {
+ app.UseExceptionHandler("/Home/Error");
+ }
+
+ app.UseStaticFiles();
+
+ app.UseRouting();
+
+ app.UseAuthorization();
+
+ app.MapControllerRoute(
+ name: "default",
+ pattern: "{controller=Home}/{action=Index}/{id?}"
+ );
+
+ app.Run();
+ }
+}
diff --git a/ASP.NET Core/Readme.md b/ASP.NET Core/Readme.md
new file mode 100644
index 0000000..72bc6a7
--- /dev/null
+++ b/ASP.NET Core/Readme.md
@@ -0,0 +1,30 @@
+# ASP.NET Core DevExtreme Example
+
+For more information about this example check the [Readme](../README.md).
+
+## Build and Run
+
+Prerequisites: .NET 8 SDK, Node.js (for npm/gulp resource bundling).
+
+Restore and build:
+```sh
+dotnet restore
+dotnet build
+```
+
+Run (HTTPS on 5001, HTTP on 5000 by default):
+```sh
+dotnet run
+```
+
+You can also use Visual Studio: F5 / Ctrl+F5.
+
+## Further help
+
+DevExtreme ASP.NET Core Razor syntax: https://docs.devexpress.com/AspNetCore/400574/devextreme-based-controls/concepts/razor-syntax
+Client-side API basics:
+* Get/Set properties: https://js.devexpress.com/DevExtreme/Guide/jQuery_Components/Component_Configuration_Syntax/#Get_and_Set_Properties
+* Call methods: https://js.devexpress.com/DevExtreme/Guide/jQuery_Components/Component_Configuration_Syntax/#Call_Methods
+* Get instance: https://js.devexpress.com/DevExtreme/Guide/jQuery_Components/Component_Configuration_Syntax/#Get_a_UI_Component_Instance
+
+To get more help with DevExtreme, submit a ticket through the [Support Center](https://supportcenter.devexpress.com/ticket/create).
diff --git a/ASP.NET Core/Views/Home/Index.cshtml b/ASP.NET Core/Views/Home/Index.cshtml
new file mode 100644
index 0000000..d02f619
--- /dev/null
+++ b/ASP.NET Core/Views/Home/Index.cshtml
@@ -0,0 +1,26 @@
+@(Html.DevExtreme().SelectBox()
+ .DataSource(d => d
+ .Mvc().Controller("SelectBoxData")
+ .LoadAction("Get")
+ .Key("ID")
+ )
+ .DataSourceOptions(o => o.Group("Category"))
+ .ValueExpr("ID")
+ .DisplayExpr("Name")
+ .SearchEnabled(true)
+ .OnValueChanged("handleValueChanged")
+ .Grouped(true)
+ .Label("Product")
+ .LabelMode(EditorLabelMode.Floating)
+ .DropDownOptions(o => o.Height(150))
+)
+
+
diff --git a/ASP.NET Core/Views/Shared/Error.cshtml b/ASP.NET Core/Views/Shared/Error.cshtml
new file mode 100644
index 0000000..117599a
--- /dev/null
+++ b/ASP.NET Core/Views/Shared/Error.cshtml
@@ -0,0 +1,8 @@
+An error occurred while the server was processing your request.
+
+
+ To display detailed information about the error, set the ASPNETCORE_ENVIRONMENT environment variable to Development and restart the app.
+
+
+ The Development environment should not be enabled for deployed applications because it provides users access to exceptions that can contain sensitive information.
+
\ No newline at end of file
diff --git a/ASP.NET Core/Views/Shared/_Layout.cshtml b/ASP.NET Core/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000..f5067e5
--- /dev/null
+++ b/ASP.NET Core/Views/Shared/_Layout.cshtml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+ ASP_NET_Core
+
+
+
+
+
+
+
+
+
+
+
+
+ @RenderBody()
+
+
+
+
\ No newline at end of file
diff --git a/ASP.NET Core/Views/_ViewImports.cshtml b/ASP.NET Core/Views/_ViewImports.cshtml
new file mode 100644
index 0000000..20b558f
--- /dev/null
+++ b/ASP.NET Core/Views/_ViewImports.cshtml
@@ -0,0 +1,4 @@
+@using ASP_NET_Core
+@namespace ASP_NET_Core.Models
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+@using DevExtreme.AspNet.Mvc
diff --git a/ASP.NET Core/Views/_ViewStart.cshtml b/ASP.NET Core/Views/_ViewStart.cshtml
new file mode 100644
index 0000000..820a2f6
--- /dev/null
+++ b/ASP.NET Core/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "_Layout";
+}
diff --git a/ASP.NET Core/appsettings.Development.json b/ASP.NET Core/appsettings.Development.json
new file mode 100644
index 0000000..8983e0f
--- /dev/null
+++ b/ASP.NET Core/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ }
+}
diff --git a/ASP.NET Core/appsettings.json b/ASP.NET Core/appsettings.json
new file mode 100644
index 0000000..d9d9a9b
--- /dev/null
+++ b/ASP.NET Core/appsettings.json
@@ -0,0 +1,10 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/ASP.NET Core/package-lock.json b/ASP.NET Core/package-lock.json
new file mode 100644
index 0000000..b0356be
--- /dev/null
+++ b/ASP.NET Core/package-lock.json
@@ -0,0 +1,440 @@
+{
+ "name": "asp.net",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "asp.net",
+ "version": "1.0.0",
+ "dependencies": {
+ "bootstrap": "^5.3.7",
+ "devextreme-aspnet-data": "^5.1.0",
+ "devextreme-dist": "^26.1.3",
+ "jquery": "3.7.1"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.7",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@devexpress/utils": {
+ "version": "2.1.1",
+ "license": "SEE LICENSE IN README.md",
+ "peer": true,
+ "dependencies": {
+ "tslib": "2.3.1"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/@preact/signals-core": {
+ "version": "1.14.3",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ }
+ },
+ "node_modules/bootstrap": {
+ "version": "5.3.8",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/core-js": {
+ "version": "3.49.0",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
+ "node_modules/core-util-is": {
+ "version": "1.0.3",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/devexpress-diagram": {
+ "version": "2.2.29",
+ "license": "SEE LICENSE IN README.md",
+ "peer": true,
+ "dependencies": {
+ "@devexpress/utils": "^2.1.1",
+ "es6-object-assign": "^1.1.0"
+ }
+ },
+ "node_modules/devexpress-gantt": {
+ "version": "4.1.69",
+ "license": "SEE LICENSE IN README.md",
+ "peer": true,
+ "dependencies": {
+ "@devexpress/utils": "^2.1.1",
+ "tslib": "2.3.1"
+ }
+ },
+ "node_modules/devextreme": {
+ "version": "26.1.3",
+ "license": "SEE LICENSE IN README.md",
+ "peer": true,
+ "dependencies": {
+ "@babel/runtime": "^7.12.1",
+ "@preact/signals-core": "^1.8.0",
+ "devexpress-diagram": "2.2.29",
+ "devexpress-gantt": "4.1.69",
+ "devextreme-quill": "1.7.9",
+ "inferno": "^8.2.3",
+ "inferno-create-element": "^8.2.3",
+ "inferno-hydrate": "^8.2.3",
+ "jszip": "^3.10.1",
+ "rrule": "^2.7.1",
+ "unplugin": "^3.0.0",
+ "zod": "3.24.4",
+ "zod-to-json-schema": "3.24.6"
+ },
+ "bin": {
+ "devextreme-bundler": "bin/bundler.js",
+ "devextreme-bundler-init": "bin/bundler-init.js",
+ "devextreme-license": "bin/devextreme-license.js"
+ }
+ },
+ "node_modules/devextreme-aspnet-data": {
+ "version": "5.1.0",
+ "license": "MIT",
+ "peerDependencies": {
+ "devextreme": ">=18.1.0"
+ }
+ },
+ "node_modules/devextreme-dist": {
+ "version": "26.1.3",
+ "resolved": "https://registry.npmjs.org/devextreme-dist/-/devextreme-dist-26.1.3.tgz",
+ "integrity": "sha512-cN+2yR3bK5uOnGHGg4ioIG95gKKqDuUnthbPVnRbpfvZczenD2kMbmdyLZkWbze7cDSfIcAiP4CLGMGhuPj/bg==",
+ "license": "SEE LICENSE IN LICENSE.md"
+ },
+ "node_modules/devextreme-quill": {
+ "version": "1.7.9",
+ "license": "BSD-3-Clause",
+ "peer": true,
+ "dependencies": {
+ "core-js": "^3.34.0",
+ "eventemitter3": "^4.0.7",
+ "lodash.clonedeep": "^4.5.0",
+ "lodash.merge": "^4.6.2",
+ "parchment": "^2.0.1",
+ "quill-delta": "^5.0.0"
+ }
+ },
+ "node_modules/es6-object-assign": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/fast-diff": {
+ "version": "1.3.0",
+ "license": "Apache-2.0",
+ "peer": true
+ },
+ "node_modules/immediate": {
+ "version": "3.0.6",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/inferno": {
+ "version": "8.2.3",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "csstype": "^3.1.2",
+ "inferno-vnode-flags": "8.2.3",
+ "opencollective-postinstall": "^2.0.3"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/inferno"
+ }
+ },
+ "node_modules/inferno-create-element": {
+ "version": "8.2.3",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "inferno": "8.2.3"
+ }
+ },
+ "node_modules/inferno-hydrate": {
+ "version": "8.2.3",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "inferno": "8.2.3"
+ }
+ },
+ "node_modules/inferno-vnode-flags": {
+ "version": "8.2.3",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "license": "ISC",
+ "peer": true
+ },
+ "node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/jquery": {
+ "version": "3.7.1",
+ "license": "MIT"
+ },
+ "node_modules/jszip": {
+ "version": "3.10.1",
+ "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",
+ "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",
+ "license": "(MIT OR GPL-3.0-or-later)",
+ "peer": true,
+ "dependencies": {
+ "lie": "~3.3.0",
+ "pako": "~1.0.2",
+ "readable-stream": "~2.3.6",
+ "setimmediate": "^1.0.5"
+ }
+ },
+ "node_modules/lie": {
+ "version": "3.3.0",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "immediate": "~3.0.5"
+ }
+ },
+ "node_modules/lodash.clonedeep": {
+ "version": "4.5.0",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/lodash.isequal": {
+ "version": "4.5.0",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/opencollective-postinstall": {
+ "version": "2.0.3",
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "opencollective-postinstall": "index.js"
+ }
+ },
+ "node_modules/pako": {
+ "version": "1.0.11",
+ "license": "(MIT AND Zlib)",
+ "peer": true
+ },
+ "node_modules/parchment": {
+ "version": "2.0.1",
+ "license": "BSD-3-Clause",
+ "peer": true
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.4",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/process-nextick-args": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/quill-delta": {
+ "version": "5.1.0",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "fast-diff": "^1.3.0",
+ "lodash.clonedeep": "^4.5.0",
+ "lodash.isequal": "^4.5.0"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "2.3.8",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/rrule": {
+ "version": "2.8.1",
+ "license": "BSD-3-Clause",
+ "peer": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/rrule/node_modules/tslib": {
+ "version": "2.8.1",
+ "license": "0BSD",
+ "peer": true
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/setimmediate": {
+ "version": "1.0.5",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.3.1",
+ "license": "0BSD",
+ "peer": true
+ },
+ "node_modules/unplugin": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "picomatch": "^4.0.3",
+ "webpack-virtual-modules": "^0.6.2"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/webpack-virtual-modules": {
+ "version": "0.6.2",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/zod": {
+ "version": "3.24.4",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-to-json-schema": {
+ "version": "3.24.6",
+ "license": "ISC",
+ "peer": true,
+ "peerDependencies": {
+ "zod": "^3.24.1"
+ }
+ }
+ }
+}
diff --git a/ASP.NET Core/package.json b/ASP.NET Core/package.json
new file mode 100644
index 0000000..572bcf5
--- /dev/null
+++ b/ASP.NET Core/package.json
@@ -0,0 +1,11 @@
+{
+ "version": "1.0.0",
+ "name": "asp.net",
+ "private": true,
+ "dependencies": {
+ "jquery": "3.7.1",
+ "devextreme-dist": "^26.1.3",
+ "devextreme-aspnet-data": "^5.1.0",
+ "bootstrap": "^5.3.7"
+ }
+}
diff --git a/ASP.NET Core/wwwroot/css/Site.css b/ASP.NET Core/wwwroot/css/Site.css
new file mode 100644
index 0000000..e69de29
diff --git a/Angular/angular.json b/Angular/angular.json
index 7173529..fb05a00 100644
--- a/Angular/angular.json
+++ b/Angular/angular.json
@@ -36,7 +36,7 @@
"src/assets"
],
"styles": [
- "node_modules/devextreme/dist/css/dx.material.blue.light.compact.css",
+ "node_modules/devextreme/dist/css/dx.fluent.blue.light.css",
"src/styles.scss"
],
"scripts": []
diff --git a/Angular/src/app/app.component.html b/Angular/src/app/app.component.html
index a96e984..43d5631 100644
--- a/Angular/src/app/app.component.html
+++ b/Angular/src/app/app.component.html
@@ -7,6 +7,8 @@
label="Product"
labelMode="floating"
[grouped]="true"
- [dropDownOptions]="dropDownOptions"
>
+
diff --git a/Angular/src/app/app.component.ts b/Angular/src/app/app.component.ts
index 76d2114..928c2f9 100644
--- a/Angular/src/app/app.component.ts
+++ b/Angular/src/app/app.component.ts
@@ -1,10 +1,10 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';
-import DataSource from 'devextreme/data/data_source';
+
+import { DxSelectBoxModule, type DxSelectBoxTypes } from 'devextreme-angular/ui/select-box';
+import { DataSource } from 'devextreme-angular/common/data';
import notify from 'devextreme/ui/notify';
-import { DxSelectBoxTypes } from 'devextreme-angular/ui/select-box';
-import { Item } from './app.types';
-import { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';
+import { Item } from './app.types';
@Component({
selector: 'app-root',
@@ -15,11 +15,8 @@ import { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';
})
export class AppComponent {
dataSource: DataSource;
-
data: Item[];
- dropDownOptions: { height: number };
-
constructor() {
this.data = [
{
@@ -57,10 +54,6 @@ export class AppComponent {
},
group: 'Category',
});
-
- this.dropDownOptions = {
- height: 150,
- };
}
onValueChanged(e: DxSelectBoxTypes.ValueChangedEvent): void {
diff --git a/React/src/App.tsx b/React/src/App.tsx
index 6208fa6..6283a66 100644
--- a/React/src/App.tsx
+++ b/React/src/App.tsx
@@ -1,10 +1,12 @@
import { useCallback } from 'react';
+
import './App.css';
-import 'devextreme/dist/css/dx.material.blue.light.compact.css';
-import SelectBox from 'devextreme-react/select-box';
-import DataSource from 'devextreme/data/data_source';
+import 'devextreme/dist/css/dx.fluent.blue.light.css';
+
+import { SelectBox, DropDownOptions, type SelectBoxTypes } from 'devextreme-react/select-box';
+import { DataSource } from 'devextreme-react/common/data';
import notify from 'devextreme/ui/notify';
-import type { SelectBoxTypes } from 'devextreme-react/select-box';
+
import type { Item } from './types';
const data: Item[] = [
@@ -44,10 +46,6 @@ const dataSource = new DataSource({
group: 'Category',
});
-const dropDownOptions = {
- height: 150,
-};
-
function App(): JSX.Element {
const onValueChanged = useCallback((e: SelectBoxTypes.ValueChangedEvent) => {
notify(
@@ -68,8 +66,9 @@ function App(): JSX.Element {
label="Product"
labelMode="floating"
grouped={true}
- dropDownOptions={dropDownOptions}
- />
+ >
+
+
);
}
diff --git a/Vue/src/components/SelectBoxContent.vue b/Vue/src/components/SelectBoxContent.vue
index ff92294..610710d 100644
--- a/Vue/src/components/SelectBoxContent.vue
+++ b/Vue/src/components/SelectBoxContent.vue
@@ -1,9 +1,10 @@