Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarke Petersen 15 posts 113 karma points
    Nov 04, 2014 @ 08:39
    Bjarke Petersen
    0

    Umbraco 7.1.8 MVC - Devexpress MVC

    Trying to implement Devexpress MVC components to a new Umbraco 7.1.8 installation.

    I need to place this in my "master layout"

    @Html.DevExpress().GetStyleSheets(
    new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
    new StyleSheet { ExtensionSuite = ExtensionSuite.Editors },
    new StyleSheet { ExtensionSuite = ExtensionSuite.HtmlEditor },
    new StyleSheet { ExtensionSuite = ExtensionSuite.GridView },
    new StyleSheet { ExtensionSuite = ExtensionSuite.PivotGrid },
    new StyleSheet { ExtensionSuite = ExtensionSuite.Chart },
    new StyleSheet { ExtensionSuite = ExtensionSuite.Report },
    new StyleSheet { ExtensionSuite = ExtensionSuite.Scheduler },
    new StyleSheet { ExtensionSuite = ExtensionSuite.TreeList }
    )
    @Html.DevExpress().GetScripts(
    new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
    new Script { ExtensionSuite = ExtensionSuite.HtmlEditor },
    new Script { ExtensionSuite = ExtensionSuite.GridView },
    new Script { ExtensionSuite = ExtensionSuite.PivotGrid },
    new Script { ExtensionSuite = ExtensionSuite.Editors },
    new Script { ExtensionSuite = ExtensionSuite.Chart },
    new Script { ExtensionSuite = ExtensionSuite.Report },
    new Script { ExtensionSuite = ExtensionSuite.Scheduler },
    new Script { ExtensionSuite = ExtensionSuite.TreeList }
    )

    But I get this error:

    'System.Web.Mvc.HtmlHelper<Umbraco.Web.Models.RenderModel>' does not contain a definition for 'devexpress' and no extension method 'devexpress' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Umbraco.Web.Models.RenderModel' could be found (are you missing a using directive or an assemble reference?)

    Has anybody successfully used Devexpress in an Umbraco MVC site?

  • Bjarke Petersen 15 posts 113 karma points
    Nov 06, 2014 @ 15:50
  • Bjarke Petersen 15 posts 113 karma points
    Nov 07, 2014 @ 10:38
    Bjarke Petersen
    0

    Also you need to "GetScripts" before loading skel (txt starterkit):

    <head>
    <title>@Umbraco.Field("title", altFieldAlias: "pageName") | @Umbraco.Field("siteName", recursive: true)</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700|Open+Sans+Condensed:700" rel="stylesheet" />
    <script src="/js/jquery.min.js"></script>
    <script src="/js/config.js"></script>

    @Html.DevExpress().GetScripts(
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.HtmlEditor },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.GridView },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.PivotGrid },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Editors },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Chart },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Report },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Scheduler },
    new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.TreeList }
    )

    <script src="/js/skel.min.js"></script>
    <script src="/js/skel-panels.min.js"></script>
    <noscript>
    <link rel="stylesheet" href="/css/skel-noscript.css" />
    <link rel="stylesheet" href="/css/style.css" />
    <link rel="stylesheet" href="/css/style-desktop.css" />
    </noscript>
    <!--[if lte IE 9]><link rel="stylesheet" href="/css/ie9.css" /><![endif]-->
    <!--[if lte IE 8]><script src="/js/html5shiv.js"></script><link rel="stylesheet" href="/css/ie8.css" /><![endif]-->
    <!--[if lte IE 7]><link rel="stylesheet" href="/css/ie7.css" /><![endif]-->

    </head>

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies