How to add the custom theme from theme builder in telerik ui blazor in vs2022? - telerik

I am new in this telerik ui blazor so i am working with the sample project
here:
https://github.com/alexziskind1/RpsTrackerBlazor
according to the tutorial using theme builder for Ui blazor i made one file but when i added it into my project and linked it with this line of code
but it did't work.no error no changes occur.
for extra information i am using trial version so as the tutorial.

Related

ASP.NET Core MVC web app: controller wizard issue

I have the following problem ... Visual Studio 2022 walkthrough code https://github.com/everstudybee/DatabaseTest
The solution includes three projects:
Database - Class Library
TestProject - ASP.NET Core MVC web app
TestProject2 - ASP.NET Core MVC web app
There are database classes for the TestProject project in the Database project. Unfortunately, after selecting the wizard, I get the following error. When I configure the controller and views manually, it all works.
Controller selection
Controller configuration
Error
When I do not separate the databases into a separate project, but everything is in one, the wizard works beautifully and creates controllers and views, as seen in the TestProject2 project.
Overall, creating a database with Add-Migration and Update-Database works fine. There is only a problem with this controller and views wizard. Maybe there is a way to do it?
The issue relates the Microsoft.VisualStudio.Web.CodeGeneration.Design package. I could reproduce the problem using 6.0.9 version, 6.0.8 version and 6.0.0 version. But it works well on asp.net 5 and Microsoft.VisualStudio.Web.CodeGeneration.Design 5.0.2.
This is a known issue: in asp.net 6 application, if we add the class library reference in the MVC application, and in the MVC application using Scaffolded to generate page, it will show this error. You can also feedback this issue to the Scaffolding forum, hope they can fix it in the next version.
As a workaround, you can try to the following methods:
Method 1:
Remove the Database class library reference from the MVC project
According to the models in the Database class library, create models (use the same name) in the MVC projects.
In MVC projects, you can use Scaffold to add the generate pages with the new created models.
Remove the models from the MVC project and re-add the Database class library project reference. [Note] You need to change the model reference in the generated page.
Method 2:
You can also create a new project which contains the MVC and Database models(put them in the same project), then generate the page using Scaffolded, after that you can copy the generated page to the original/main project.
Method 3
Try to downgrade the Asp.net 6 application to Asp.net 5(remember to downgrade the relates package, especially the Microsoft.VisualStudio.Web.CodeGeneration.Design package), then use Scaffold to generate the related views, after that migration the application from Asp.net 5 to Asp.net 6.
Refer to Migrate from ASP.NET Core 5.0 to 6.0

How can I instantiate Kendo PDFViewer?

I can't use html helpers to instantiate a kendo pdf viewer. My company has a Telerik account. Error image and referenced telerik dll's below. Anything else I can check?
Telerik references in project
pdfviewer error
The issue is most probably caused by the usage of an old dll reference where the component is still not added or some cache issue with the Visual Studio. I would recommend to check again if you are using the latest version of Kendo dll or probably restart the Visual Studio.
If it is still not working the best apraoch is to connect with Telerik support through your company's account and share a dummy project where the issue could be reproduced.
Greetings,
Plamen

Cannot add view to ASP.NET MVC 5 project

I'm trying to add a view to an ASP.NET MVC 5 project in Visual Studio 2013, but the Add button is greyed out.
The default installation of Visual Studio was missing some required elements. When I chose ASP.NET and web development, the following options were not selected on the right side of the page.
.NET Framework project and item templates
NET Framework 4.6.2-4.7.1 development tools
Additional Project templates (previous versions)
.NET WebAssembly build tools
(I found this on the Microsoft web site Microsoft Developer Resources (in spanish!)
I got this for ages, all I did was upgrade the nuget packages for Mvc and it fixed it. I suspect that I had a mismatch of versions in the solution.
Update-Package Microsoft.AspNet.Mvc -Version 5.2.3
The version part is optional, but it should mean that all projects get the same version.
You should create a controller first, then it will create a View folder automatically. Try to right click that file then click create new view. Also Copy might be a specific name, you may need to change that name.
Different from the OP issue (as I'm on VS2017) but in case anyone else comes to this question when they've made the same (basic) error as me...
It took me a few minutes to realise that if you type in a new Model class (as seen below) then this is not what the UI wants; it requires you to select an existing Model from the dropdown. Once I created the model and then selected it 'Add' was enabled.

Which Visual Studio project type does PhoneJS use?

I am looking at phoneJs and they talk about using nuget. However they don't say what their solution is. It looks like it is a javascript solution project but I don't see that in VS2012.
PhoneJs
It can be ASP.NET project (WebForms, MVC) or Window Store Javascript application.
Screenshots at the page you refer most probably display Windows Store project. This kind of project is only available in Windows 8.
P.S. Additional project templates with PhoneJS are included in DevExtreme: documentation.

Open an exising MVC 3 project in visual studio 11 developer preview

I've trying to open and convert an existing vs 2010 mvc 3 project in the new dev 11 preview and am running in to a difficult issue. The solution file will convert successfully, however the one mvc 3 web project in the solution shows in the solution explorer as unloaded post conversion. When i attempt to reload the project from solution explorer, i get prompted to convert the project and receive the following error in the upgradelog.xml
The project file'myproject.csproj' cannot be opened. There is a missing project subtype. Subtype: '{E53F8FEA-EAE0-44A6-8774-FFD645390401}' is unsupported by this installation.
From what i could track down, this has to do with MVC, but that doesn't really help me work around the issue. Any suggestions or workarounds would be appreciated.
Update: Actually, MVC 3 for Visual Studio 11 Dev Preview has just been published: http://www.microsoft.com/download/en/details.aspx?id=1491
We have not yet shipped MVC 3 support in Visual Studio 11. You can work around this by editing your csproj file and removing the project type GUID {E53F8FEA-EAE0-44A6-8774-FFD645390401}. This will cause your project to load like a normal WAP. You will be able to edit your code, however MVC-specific actions (Add Controller, etc) will not be available.
You may want to try the steps from the Upgrading an ASP.NET MVC 3 Project to ASP.NET MVC 4 section of the release notes, even if the document describes the VS2010 version.
I managed to convert a VS2010/MVC3 project, but VS11 shows a warning every time I open the solution, stating that the project requires ASP.NET Web pages with Razor syntx 1.0. OTOH, the project seems to run without any problems (VS11 setup also installed ASP.NET Web pages 2).

Resources