This is a migrated thread and some comments may be shown as answers.

Is there an MVC equivalent to StyleSheetManager?

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marion
Top achievements
Rank 1
Marion asked on 07 Jun 2017, 07:27 PM

With Kendo ASP.Net Ajax there is a style sheet manager that can be used to switch between several styles for the Kendo controls. Is there an equivalent in the MVC?

 

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 09 Jun 2017, 11:04 AM
Hello Marion,

The Telerik UI for ASP.NET MVC suite does not offer such a product, because there is an equivalent that the Framework provides - bundeling. You can define your bundles and inclde the needed scripts to be rendered on your _Layout.cshtml view. 

Please refer to the following documentatio article, providing more information on the matter:

http://docs.telerik.com/aspnet-mvc/getting-started/fundamentals#bundling


Hope this would help.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 19 Jun 2017, 02:22 PM

Perhaps I am missing something.  Within the MVC world, bundling is a way of getting a collection of style sheets, javascript, such to the client in a compressed quicker manner.  Using the RadTools style sheet manager it was possible to provide the user with a list of style sheets and allow them to pick a "flavor" for a given page.  The style sheet would then magically cause the Telerik controls to then use the currently selected Style Sheet.

While I agree bundling appears to be a good way to get style data to the client, I see nothing in the MVC implementation which provides the ability to use style "x" now, style "y" then, and style "z" then as well. 

Again, I might be missing something.

0
Nikolay
Telerik team
answered on 21 Jun 2017, 12:48 PM
Hi,

Please see the following forum thread, where the same problem is discussed:(https://stackoverflow.com/questions/27732716/scripts-and-styles-management-is-asp-net-mvc-4). 

Regards,
Nikolay
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Marion
Top achievements
Rank 1
Answers by
Nencho
Telerik team
David
Top achievements
Rank 1
Iron
Veteran
Iron
Nikolay
Telerik team
Share this question
or