Skip to content

Commit 0cd07c1

Browse files
Integrated latest changes at 04-22-2025 10:30:11 PM
1 parent 7d44a9e commit 0cd07c1

File tree

7 files changed

+48
-17
lines changed

7 files changed

+48
-17
lines changed

ej2-angular/code-snippet/dropdownlist/asterisk-cs1/src/app.component.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ imports: [
1717
standalone: true,
1818
selector: 'app-root',
1919
// specifies the template string for the DropDownList component with dataSource
20-
template: `<ejs-dropdownlist id='ddlelement' [dataSource]='data' placeholder = 'Select a game' floatLabelType="Auto"></ejs-dropdownlist>`
20+
template: `<ejs-dropdownlist id='ddlelement' [dataSource]='data' placeholder = 'Select a game' floatLabelType="Auto"></ejs-dropdownlist>`,
21+
styles: [
22+
`
23+
.e-input-group.e-control-wrapper.e-float-input .e-float-text::after {
24+
content: ' *';
25+
color: red;
26+
}
27+
`,
28+
],
2129
})
2230
export class AppComponent {
2331
constructor() {

ej2-angular/grid/connecting-to-database/dapper.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,9 @@ public class CRUDModel<T> where T : class
939939

940940
When you run the application, the resultant Grid will look like this
941941

942-
![Angular Grid Component bound with Microsoft SQL Server using Dapper data](.../images/connecting-micro-curd.gif)
942+
![Angular Grid Component bound with Microsoft SQL Server using Dapper data](../images/connecting-micro-curd.gif)
943+
944+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20Dapper%20using%20UrlAdaptor/Grid_Dapper).
943945
944946
## Binding data from Microsoft SQL Server using Dapper with CustomAdaptor
945947

@@ -1786,7 +1788,7 @@ public class CRUDModel<T> where T : class
17861788
{% endhighlight %}
17871789
{% endtabs %}
17881790

1789-
## Batch Operation:
1791+
**Batch Operation:**
17901792

17911793
To perform the batch operation, override the **batchRequest** method of the `CustomAdaptor` and add the following code in the `CustomAdaptor`. The below code snippet demonstrated how to handle the batch update request within the **batchRequest** method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
17921794

@@ -1904,4 +1906,6 @@ public class CRUDModel<T> where T : class
19041906
{% endhighlight %}
19051907
{% endtabs %}
19061908

1907-
![Syncfusion Angular Grid bound with Microsoft SQL Server using Dapper data](../images/connecting-micro-curd.gif)
1909+
![Syncfusion Angular Grid bound with Microsoft SQL Server using Dapper data](../images/connecting-micro-curd.gif)
1910+
1911+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20Dapper%20using%20CustomAdaptor/Grid_Dapper_CustomAdaptor).

ej2-angular/grid/connecting-to-database/entityframework.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This section describes step by step process how to use Entity Framework to retri
3939

4040
**3.** Create an API controller (aka, GridController.cs) file under **Controllers** folder that helps to establish data communication with the Syncfusion Angular Grid.
4141

42-
**4** In the API controller (aka, GridController), a connection is established to Microsoft SQL Server within the **GetOrderData()** method using **OrderDbContext**. This class extends **DbContext** and is configured to connect to a Microsoft SQL Server database using the provided connection string. It includes a **DbSet<Orders>** property, enabling interaction with the **Orders** table in the database. The method retrieves all orders from the database asynchronously and returns them as a list of `Orders` objects as shown in the following code snippet.
42+
**4** In the API controller (aka, GridController), a connection is established to Microsoft SQL Server within the **GetOrderData()** method using **OrderDbContext**. This class extends **DbContext** and is configured to connect to a Microsoft SQL Server database using the provided connection string. It includes a *DbSet&lt;Orders&gt;** property, enabling interaction with the **Orders** table in the database. The method retrieves all orders from the database asynchronously and returns them as a list of `Orders` objects as shown in the following code snippet.
4343

4444
{% tabs %}
4545
{% highlight cs tabtitle="GridController.cs" %}
@@ -1060,6 +1060,7 @@ When you run the application, the resultant Syncfusion Angular Grid will look li
10601060

10611061
![Syncfusion Angular Grid bound with Microsoft SQL Server data using Entity Framework](../images/connecting-micro-curd.gif)
10621062

1063+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Bindind%20SQL%20database%20using%20EF%20and%20UrlAdaptor/Grid_EntityFramework).
10631064
10641065
## Binding data from Microsoft SQL Server using Entity Framework with CustomAdaptor
10651066

@@ -1076,7 +1077,7 @@ This section describes step by step process how to use Entity Framework to retri
10761077

10771078
**4.** Within the `processResponse` method of `CustomAdaptor`, fetch data by calling the **GetOrderData** method.
10781079

1079-
* In this **GetOrderData** method, a connection is established to Microsoft SQL Server using **OrderDbContext**. This class extends **DbContext** and is configured to connect to a SQL Server database using the provided connection string. It includes a **DbSet<Orders>** property, enabling interaction with the **Orders** table in the database. The method retrieves all orders from the database asynchronously and returns them as a list of `Orders` objects.
1080+
* In this **GetOrderData** method, a connection is established to Microsoft SQL Server using **OrderDbContext**. This class extends **DbContext** and is configured to connect to a SQL Server database using the provided connection string. It includes a *DbSet&lt;Orders&gt;** property, enabling interaction with the **Orders** table in the database. The method retrieves all orders from the database asynchronously and returns them as a list of `Orders` objects.
10801081

10811082
* Finally, return the response as a `result` and `count` pair object in the `processResponse` method to bind the data to the Grid.
10821083

@@ -2121,4 +2122,6 @@ public class CRUDModel<T> where T : class
21212122
{% endhighlight %}
21222123
{% endtabs %}
21232124

2124-
![Syncfusion Angular Grid bound with Microsoft SQL Server data using Entity Framework](../images/connecting-micro-curd.gif)
2125+
![Syncfusion Angular Grid bound with Microsoft SQL Server data using Entity Framework](../images/connecting-micro-curd.gif)
2126+
2127+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Bindind%20SQL%20database%20using%20EF%20and%20CustomAdaptor/Grid_EntityFramework).

ej2-angular/grid/connecting-to-database/microsoft-sql-server.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,8 @@ When you run the application, the resultant Syncfusion Angular Grid will look li
951951

952952
![Syncfusion Angular Grid bound with Microsoft SQL Server data](../images/connecting-micro-curd.gif)
953953

954+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20MS%20SQL%20database%20using%20UrlAdaptor/Grid_MSSQL).
955+
954956
## Binding data from Microsoft SQL Server using CustomAdaptor
955957

956958
This section describes step by step process how to retrieve data from a Microsoft SQL Server using [CustomAdaptor](https://ej2.syncfusion.com/angular/documentation/grid/connecting-to-adaptors/custom-adaptor) and bind it to the Syncfusion Angular Grid.
@@ -1923,4 +1925,6 @@ public class CRUDModel<T> where T : class
19231925
{% endhighlight %}
19241926
{% endtabs %}
19251927

1926-
![Syncfusion Angular Grid bound with Microsoft SQL Server data](../images/connecting-micro-curd.gif)
1928+
![Syncfusion Angular Grid bound with Microsoft SQL Server data](../images/connecting-micro-curd.gif)
1929+
1930+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20MS%20SQL%20database%20using%20CustomAdaptor/Grid_MSSQL).

ej2-angular/grid/connecting-to-database/mysql-server.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,9 @@ public class CRUDModel<T> where T : class
10171017

10181018
When you run the application, the resultant Syncfusion Angular Grid will look like this
10191019

1020-
![Grid bound with MySQL Server data](.../images/connecting-micro-curd.gif)
1020+
![Grid bound with MySQL Server data](../images/connecting-micro-curd.gif)
1021+
1022+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20MySQL%20database%20using%20UrlAdaptor/Grid_MySQL).
10211023
10221024
## Binding data from MySQL Server using CustomAdaptor
10231025

@@ -1899,7 +1901,7 @@ public class CRUDModel<T> where T : class
18991901
{% endhighlight %}
19001902
{% endtabs %}
19011903

1902-
## Batch Operation:
1904+
**Batch Operation:**
19031905

19041906
To perform the batch operation, override the **batchRequest** method of the `CustomAdaptor` and add the following code in the `CustomAdaptor`. The below code snippet demonstrated how to handle the batch update request within the **batchRequest** method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
19051907

@@ -2037,4 +2039,6 @@ public class CRUDModel<T> where T : class
20372039
{% endhighlight %}
20382040
{% endtabs %}
20392041

2040-
![Syncfusion Angular Grid bound with MySQL Server data](../images/connecting-micro-curd.gif)
2042+
![Syncfusion Angular Grid bound with MySQL Server data](../images/connecting-micro-curd.gif)
2043+
2044+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20MySQL%20database%20using%20CustomAdaptor/Grid_MySQL).

ej2-angular/grid/connecting-to-database/postgresql-server.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@ public class CRUDModel<T> where T : class
10191019

10201020
When you run the application, the resultant Syncfusion Angular Grid will look like this
10211021

1022-
![Grid bound with PostgreSQL Server data](.../images/connecting-micro-curd.gif)
1022+
![Grid bound with PostgreSQL Server data](../images/connecting-micro-curd.gif)
1023+
1024+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20PostgreSQL%20database%20using%20UrlAdaptor/Grid_PostgreSQL).
10231025
10241026
## Binding data from PostgreSQL Server using CustomAdaptor
10251027

@@ -1909,7 +1911,7 @@ public class CRUDModel<T> where T : class
19091911
{% endhighlight %}
19101912
{% endtabs %}
19111913

1912-
## Batch Operation:
1914+
**Batch Operation:**
19131915

19141916
To perform the batch operation, override the **batchRequest** method of the `CustomAdaptor` and add the following code in the `CustomAdaptor`. The below code snippet demonstrated how to handle the batch update request within the **batchRequest** method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
19151917

@@ -2047,4 +2049,6 @@ public class CRUDModel<T> where T : class
20472049
{% endhighlight %}
20482050
{% endtabs %}
20492051

2050-
![Syncfusion Angular Grid bound with PostgreSQL Server data](../images/connecting-micro-curd.gif)
2052+
![Syncfusion Angular Grid bound with PostgreSQL Server data](../images/connecting-micro-curd.gif)
2053+
2054+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20PostgreSQL%20database%20using%20CustomAdaptor).

ej2-angular/grid/connecting-to-database/sqlite-server.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@ public class CRUDModel<T> where T : class
10091009

10101010
When you run the application, the resultant Grid will look like this
10111011

1012-
![Angular Grid Component bound with SQLite Server data](.../images/connecting-micro-curd.gif)
1012+
![Angular Grid Component bound with SQLite Server data](../images/connecting-micro-curd.gif)
1013+
1014+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20SQLite%20using%20UrlAdaptor/Grid_SQLite).
10131015
10141016
## Binding data from SQLite Server using CustomAdaptor
10151017

@@ -1894,7 +1896,7 @@ public class CRUDModel<T> where T : class
18941896
{% endhighlight %}
18951897
{% endtabs %}
18961898

1897-
## Batch Operation:
1899+
**Batch Operation:**
18981900

18991901
To perform the batch operation, override the **batchRequest** method of the `CustomAdaptor` and add the following code in the `CustomAdaptor`. The below code snippet demonstrated how to handle the batch update request within the **batchRequest** method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
19001902

@@ -2032,4 +2034,6 @@ public class CRUDModel<T> where T : class
20322034
{% endhighlight %}
20332035
{% endtabs %}
20342036

2035-
![Syncfusion Angular Grid bound with SQLite Server data](../images/connecting-micro-curd.gif)
2037+
![Syncfusion Angular Grid bound with SQLite Server data](../images/connecting-micro-curd.gif)
2038+
2039+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/connecting-databases-to-angular-grid/tree/master/Binding%20SQLite%20using%20CustomAdaptor/Grid_SQLite).

0 commit comments

Comments
 (0)