Skip to content

Commit d6a8325

Browse files
authored
Merge branch 'development' into 897381_docCO
2 parents 22562dc + b72842f commit d6a8325

10 files changed

+34
-6
lines changed
-8.94 KB
Loading
-14.5 KB
Loading
-15.8 KB
Loading
38.8 KB
Loading
-16.8 KB
Loading
-22 KB
Loading
26.3 KB
Loading
35.7 KB
Loading
34 KB
Loading

blazor/visual-studio-integration/scaffolding.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ N> Before use the Syncfusion Blazor Scaffolding, check whether the Syncfusion Bl
3131

3232
![Scaffolded add-in from the hosted project](images/Add_scaffold_hosted.png)
3333

34-
N> Scheduler control is not applicable for Blazor Hosted application.
35-
3634
2. In the **Add New Scaffolded item** dialog, select **Syncfusion Blazor Scaffolder** and then click **‘Add’**.
3735

3836
![Choose Syncfusion Scaffolding from Visual Studio Add scaffold dialog](images/Syncfusion_scaffolder.png)
@@ -41,11 +39,33 @@ N> Before use the Syncfusion Blazor Scaffolding, check whether the Syncfusion Bl
4139

4240
![Choose required control](images/Control_Window.png)
4341

44-
4. The Syncfusion UI Scaffolder dialog for the selected control will be displayed. As application requirements, enter the **Controller/Service Name** and **Razor Name**, then select the active application's required **Model Class** and its relevant **Data Context Class**, and then click **Next**.
42+
4. The Syncfusion UI Scaffolder dialog for the selected control will be displayed. As per the application requirements, follow these steps to set up your application.
43+
44+
### Select Data Source Type
45+
46+
1. **Local Data (default selection)**
47+
48+
To set up your application with local data, first enter the **Controller/Service name** and then enter the **Razor page name**. Next, select the required **Model class** for the active application and choose the relevant **Data context class**. Finally, click **Next** to continue.
49+
50+
![Choose required Model](images/Model_Window_Local.png)
51+
52+
N> We are introducing Adaptor types in Blazor scaffolding for remote data.
53+
54+
2. **Remote Data**
55+
56+
To set up your application with remote data, first enter the **Razor page name**, choose the **Adaptor type**, and then enter the valid **URL**. Next, enter the **TValue**. Finally, click **Next** to continue.
4557

46-
![Choose required Model](images/Model_Window.png)
58+
N> In the DataGrid and TreeGrid controls, when selecting the **URL adaptor** in the **Adaptor type**, an additional **Remote service** option will appear. You need to select either the **Localhost URL** or **API URL**.
59+
If you select the **Localhost URL**, enter the **Controller/Service name**. Then, select the required **Model class** for the active application and choose the relevant **Data context class**. Finally, click **Next** to continue.
60+
If you select the **API URL**, enter the valid **URL**. Next, enter the **TValue**. Finally, click **Next** to continue.
61+
62+
![Choose required Model](images/Model_Window_Remote.png)
4763

48-
5. The dialog for the selected control feature will be opened in the Syncfusion UI Scaffolder. Select the required features, update the necessary data fields, and then click **Add**.
64+
When using adaptor types in Blazor scaffolding, it's important to note that we provide default adaptor links for sample purposes only. These default links are designed to help you understand how the adaptors work, but they do not perform CRUD (Add, Edit, Update, Delete) operations. Instead, these default links are placeholders to demonstrate the integration process.
65+
66+
To help you implement CRUD operations, we will provide sample code that you can use as a reference. This code will guide you through the necessary steps to enable CRUD functionality in your application. You can modify and integrate this sample code to suit your specific requirements.
67+
68+
However, if you wish to perform CRUD operations, you need to provide a valid link that handles these operations. This link should point to an endpoint or a service that is capable of managing the database operations required by your application. By providing this link, you ensure that your application can interact with the back end service to perform CRUD operations effectively.
4969

5070
For **ServerSide Application**, both Local data and Remote data types will be available.
5171

@@ -55,16 +75,24 @@ N> Before use the Syncfusion Blazor Scaffolding, check whether the Syncfusion Bl
5575

5676
![Choose required selected control features for the hosted project](images/Fetaure_window_hosted.png)
5777

78+
5. In the Syncfusion UI Scaffolder, the dialog for the selected control feature will open. Choose the required features, update the necessary data fields, and then click **Add**.
79+
80+
![Choose required selected control features for the hosted project](images/Fetaure_window_hosted_feature.png)
81+
5882
6. With the selected features of the Syncfusion control code snippet, the **Controller/Service** file and the corresponding **Razor** files are generated.
5983

6084
If you select **Local Data**, the service file and razor file will be added to the application.
6185

6286
![Required Controller and Razor files added in the project for the selected control](images/Files_for_local_data.png)
6387

64-
If you select **Remote Data**, the controller file and razor file will be added to the application.
88+
If you select **Remote Data with Localhost URL**, the controller file and razor file will be added to the application.
6589

6690
![Required Controller and Razor files added in the project for the selected control](images/Files_for_remote_data.png)
6791

92+
If you choose **Remote Data with Web API adaptor types**, the razor file will be added to the application.
93+
94+
![Required Controller and Razor files added in the project for the selected control](images/Files_for_remote_data_adaptor.png)
95+
6896
7. Then, add navigation to the created razor file based on your requirement to open on the webpage.
6997

7098
8. If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion license key to your application since Syncfusion introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-syncfusion-license-key) to generate and register the Syncfusion license key to your application. Refer to this [blog](https://www.syncfusion.com/blogs/post/whats-new-in-2018-volume-2.aspx?_ga=2.11237684.1233358434.1587355730-230058891.1567654773) post for understanding the licensing changes introduced in Essential Studio.

0 commit comments

Comments
 (0)