You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -216,6 +217,76 @@ For example, you can define an external client template for a [Grid column]({% s
216
217
217
218
218
219
Also, you can integrate Telerik UI for {{ site.framework }} components in the external client templates by using the [HTML Helpers](#adding-html-helpers-inside-external-client-templates) {% if site.core %}or [Tag Helpers](adding-tag-helpers-inside-external-client-templates){% endif %}.
220
+
## Partial Client Templates
221
+
222
+
As of the R1 SP1 2023 release, the majority of the Telerik UI for {{ site.framework }} components expose the ability to include arbitrary client template content within the boundaries of a Partial View by using the respective component's new `TemplateView` method.
223
+
224
+
The example below illustrates how to incorporate the Grid Toolbar's template content within a Partial View.
Copy file name to clipboardExpand all lines: docs-aspnet/installation/migrating.md
+40-28Lines changed: 40 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,52 +13,64 @@ The MVC technology 3, 4 and 5 has been a wonderful technology for many years. It
13
13
14
14
ASP.NET Core is the active offering of Microsoft and provides cross-platform ground for building and running .NET apps on Linux, macOS, and Windows. This is the technology that will get updates going forward. So naturally, many people will want to choose developing Core MVC web applications.
15
15
16
-
Telerik UI has well supported and developed Products for each of these technologies. This article aims to help you with the process of migrating from MVC to Core MVC if this happens to be your decision.
16
+
Telerik UI has well supported and developed products for each of these technologies through its [Telerik UI for ASP.NET MVC](https://demos.telerik.com/aspnet-mvc/) and [Telerik UI for ASP.NET Core](https://demos.telerik.com/aspnet-core/) libraries.
17
+
18
+
This article aims at helping you with the process of migrating from ASP.NET MVC to ASP.NET Core.
17
19
18
20
## Compatibility
19
21
20
-
The good news is that there is almost 1:1 parity between the two UI toolsets. The transition should be smooth, easy and fully featurecovered.
22
+
The good news is that there is almost 1:1 parity between the two UI toolsets. The transition is smooth, easy, and fully feature-covered. For any minor variations, check the [section about exceptions](#exceptions) to find out where the products differ from one another.
21
23
22
-
For reference, you can compare the Code base of these two live samples and you will notice that the syntax is identical:
24
+
For reference, compare the code base of the following live samples to make sure the syntax is identical:
23
25
24
-
-[Grid in Telerik UI for MVC](https://demos.telerik.com/aspnet-mvc/grid/local-data-binding).
25
-
-[Grid in Telerik UI for Core MVC](https://demos.telerik.com/aspnet-core/grid/local-data-binding)
26
+
-[Telerik UI for ASP.NET MVC Data Grid](https://demos.telerik.com/aspnet-mvc/grid/local-data-binding).
27
+
-[Telerik UI for ASP.NET Core Data Grid](https://demos.telerik.com/aspnet-core/grid/local-data-binding)
26
28
27
29
## Exceptions
28
30
29
31
There are couple of differences worth mentioning to ease your migration process.
30
32
31
-
1. MVC Grid server rendered templates should transfer to client rendered templates in Core MVC Grid. Therefore, you will now use `.HeaderTemplate()` instead of `.ClientHeaderTemplate()`.
33
+
1. The MVC Grid server-rendered templates must transfer to client-rendered templates in Core Grid. Therefore, you will now use `.HeaderTemplate()` instead of `.ClientHeaderTemplate()`.
34
+
35
+
2. Check out the [Migrate to ASP.NET Core MVC from ASP.NET Framework MVC](https://www.telerik.com/blogs/migrate-aspnet-core-mvc-aspnet-framework-mvc) blog post by Joe Guadagno to explore the common code-behind steps while migrating an app to ASP.NET Core MVC.
36
+
37
+
Some key takeaways from this blog are:
32
38
33
-
2. We have a Blog post covering common code-behind steps:
39
+
-**Separate the Models**–Putting your domain or data transfer objects into a separate project.
40
+
-**Separate the Data Layer**–Getting data access methods out of the user interface (web app).
41
+
-**Create a New Project**–Analyzing the structure differences of a project in the new technology: folders, files, and so on.
42
+
-**Gotchas**–Possible things that may stump you during the migration process.
34
43
35
-
[Migrate to ASP.NET Core MVC from ASP.NET Framework MVC](https://www.telerik.com/blogs/migrate-aspnet-core-mvc-aspnet-framework-mvc)
44
+
3. The rest are syntax sugar differences caused by the frameworks themselves. These are present only for some of the components. For instance, here is a Validation action definition of the Upload component in MVC:
36
45
37
-
3. The rest are syntax sugar differences caused by the frameworks themselves. For instance, here is a Validation action definition of the Upload component in MVC:
5. You can check this nice MSDN article for general points when migrating:
60
+
4. The same is true for the `Startup.cs` file. Check out the [JSON serialization in Core](https://docs.telerik.com/aspnet-core/installation/json-serialization) article to see how to configure it.
55
61
56
-
[Migrate from ASP.NET MVC to ASP.NET Core MVC](https://learn.microsoft.com/en-us/aspnet/core/migration/mvc?view=aspnetcore-7.0)
62
+
5. You can check the [Migrate from ASP.NET MVC to ASP.NET Core MVC](https://learn.microsoft.com/en-us/aspnet/core/migration/mvc?view=aspnetcore-7.0) MSDN article for general points when migrating.
57
63
64
+
Some key takeaways from this article are:
65
+
66
+
- Install the .NET Upgrade Assistant.
67
+
- Open Visual Studio and choose the **Upgrade** action in the **Solution Explorer** context menu.
68
+
- Check the **Summary of Changes** before pressing **Finish**.
58
69
59
70
## Migrating from Another Technology
60
71
61
-
If you are coming from another Telerik UI toolset, we have resources addressing this situation as well:
62
-
-[From Web Forms to Core](https://www.telerik.com/blogs/review-of-telerik-toolsets-for-aspnet-web-forms-core)
63
-
-[From Web Forms to Blazor](https://www.telerik.com/blogs/review-of-telerik-toolsets-for-asp.net-web-forms-and-blazor-part-1)
64
-
-[From MVC to Blazor](https://www.telerik.com/blogs/migrating-mvc-to-blazor)
72
+
If you are coming from another Telerik UI toolset, refer to the following resources addressing this scenario:
73
+
74
+
-[From Web Forms to Core](https://www.telerik.com/blogs/review-of-telerik-toolsets-for-aspnet-web-forms-core)–A blog post and whitepaper, which aim to assist developers in familiarizing quickly with the overall idea of ASP.NET Web Forms and ASP.NET Core. They also outline a couple of fundamental steps for customers who’ve decided to create a new application based on ASP.NET Core, or modernize their existing Web Forms app by switching to a Core app.
75
+
-[From Web Forms to Blazor](https://www.telerik.com/blogs/review-of-telerik-toolsets-for-asp.net-web-forms-and-blazor-part-1)–A blog post series divided into three parts. These serve as a guide for developers to learn what Telerik has to offer for both technologies and how to migrate from ASP.NET AJAX to the newest .NET technology - Blazor.
76
+
-[From MVC to Blazor](https://www.telerik.com/blogs/migrating-mvc-to-blazor)–A blog post outlining how to migrate from ASP.NET MVC to Blazor and what pitfalls to look out for while doing so.
0 commit comments