diff --git a/blazor/combobox/getting-started-with-server-app.md b/blazor/combobox/getting-started-with-server-app.md index 2cb3228e71..bde9d32759 100644 --- a/blazor/combobox/getting-started-with-server-app.md +++ b/blazor/combobox/getting-started-with-server-app.md @@ -17,7 +17,7 @@ This section briefly explains how to include the [Blazor ComboBox](https://www.s {% tabcontent Visual Studio %} -Create a **Blazor Server App** by using the **Blazor Web App** template in Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). +Create a **Blazor Server App** by using the **Blazor Web App** template in Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs#blazor-project-templates-and-template-options) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). {% endtabcontent %} @@ -34,7 +34,7 @@ cd BlazorApp {% endhighlight %} {% endtabs %} -Alternatively, create a **Blazor Server App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. +Alternatively, create a **Blazor Server App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc#blazor-project-templates-and-template-options) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. {% endtabcontent %} @@ -55,7 +55,7 @@ cd BlazorApp {% endtabcontents %} -N> Configure the appropriate [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-10.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs) while creating a Blazor Server App. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode). +N> Configure the appropriate [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-10.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs#interactivity-location) while creating a Blazor Server App. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode). ## Install the required Blazor packages @@ -170,6 +170,7 @@ N> If the interactivity location is set to `Per page/component`, define a render {% highlight razor tabtitle="Home.razor" %} @rendermode InteractiveServer +@using Syncfusion.Blazor.DropDowns @@ -225,6 +226,8 @@ After initializing, populate the Blazor ComboBox with data using the [DataSource {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + @@ -262,10 +265,32 @@ The ComboBox allows users to input custom values that are not present in the pre {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %} @@ -278,10 +303,32 @@ By default, the popup list width matches the ComboBox input width, and the popup {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %} diff --git a/blazor/combobox/getting-started-with-web-app.md b/blazor/combobox/getting-started-with-web-app.md index 10e78d405b..7e272a6a5a 100644 --- a/blazor/combobox/getting-started-with-web-app.md +++ b/blazor/combobox/getting-started-with-web-app.md @@ -17,7 +17,7 @@ This section briefly explains how to include the [Blazor ComboBox](https://www.s {% tabcontent Visual Studio %} -Create a **Blazor Web App** using Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). +Create a **Blazor Web App** using Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs#blazor-project-templates-and-template-options) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). {% endtabcontent %} @@ -35,7 +35,7 @@ cd BlazorWebApp.Client {% endhighlight %} {% endtabs %} -Alternatively, create a **Blazor Web App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc), the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. +Alternatively, create a **Blazor Web App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc#blazor-project-templates-and-template-options), the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. {% endtabcontent %} @@ -57,7 +57,7 @@ cd BlazorWebApp.Client {% endtabcontents %} -N> Configure the appropriate [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-10.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs) while creating a Blazor Web App. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode). +N> Configure the appropriate [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-10.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs#interactivity-location) while creating a Blazor Web App. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode). ## Install the required Blazor packages @@ -172,6 +172,7 @@ N> If the interactivity location is set to `Per page/component` in the Web App, {% highlight razor tabtitle="Home.razor" %} @rendermode InteractiveAuto +@using Syncfusion.Blazor.DropDowns @@ -231,6 +232,8 @@ After initializing, populate the Blazor ComboBox with data using the [DataSource {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + @@ -268,10 +271,32 @@ The ComboBox allows users to input custom values that are not present in the pre {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %} @@ -284,10 +309,32 @@ By default, the popup list width automatically matches the ComboBox input width, {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %} diff --git a/blazor/combobox/getting-started.md b/blazor/combobox/getting-started.md index cb89f02a8b..1718a55a9c 100644 --- a/blazor/combobox/getting-started.md +++ b/blazor/combobox/getting-started.md @@ -17,7 +17,7 @@ This section explains how to add the [Blazor ComboBox](https://www.syncfusion.co {% tabcontent Visual Studio %} -Create a **Blazor WebAssembly App** using Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). +Create a **Blazor WebAssembly App** using Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vs#blazor-project-templates-and-template-options) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio). {% endtabcontent %} @@ -34,7 +34,7 @@ cd BlazorApp {% endhighlight %} {% endtabs %} -Alternatively, create a **Blazor WebAssembly App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. +Alternatively, create a **Blazor WebAssembly App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-10.0&pivots=vsc#blazor-project-templates-and-template-options) or the [Syncfusion® Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project), or the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. {% endtabcontent %} @@ -165,6 +165,8 @@ Open a Razor file located in the **~/Pages/*.razor** (for example, **Home.razor* {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + {% endhighlight %} @@ -219,6 +221,8 @@ After initialization, populate the ComboBox with data using the [DataSource](htt {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + @@ -256,10 +260,32 @@ The ComboBox supports custom values that are not present in the predefined list. {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %} @@ -272,10 +298,32 @@ By default, the popup list width automatically adjusts to the ComboBox input wid {% tabs %} {% highlight razor tabtitle="Home.razor" %} +@using Syncfusion.Blazor.DropDowns + +@code { + public class Games + { + public string ID { get; set; } + public string Text { get; set; } + } + List LocalData = new List { + new Games() { ID= "Game1", Text= "American Football" }, + new Games() { ID= "Game2", Text= "Badminton" }, + new Games() { ID= "Game3", Text= "Basketball" }, + new Games() { ID= "Game4", Text= "Cricket" }, + new Games() { ID= "Game5", Text= "Football" }, + new Games() { ID= "Game6", Text= "Golf" }, + new Games() { ID= "Game7", Text= "Hockey" }, + new Games() { ID= "Game8", Text= "Rugby"}, + new Games() { ID= "Game9", Text= "Snooker" }, + new Games() { ID= "Game10", Text= "Tennis"}, + }; +} + {% endhighlight %} {% endtabs %}