• Login
  • Register

DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DnnWebViewPage and @Html.DevExtreme() helper

You are not authorized to post a reply.
Sort:


New Around Here


Posts:2
New Around Here

    I want to use DevExtreme control in DotNetNuke MVC module.
    View in DNN MVC module inherits from DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<someModel>
    To use DevExtreme I comment this inheritance and gave: @using DevExtreme.AspNet.Mvc to make a proper ref to @Html.DevExtreme().
    Problem is that without DnnWebViewPage any @Url.Action() to proper controller action url is damaged.
    Is it possible and how to make a DnnWebViewPage inheritance and even helpers with DevExtreme helper objects ?
    Now I receive error that DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper does not include definition of DevExtreme (means that @Html.DevExtreme() is unknown).



    Veteran Member


    Posts:649
    Veteran Member

      The DNN bits are always going to be necessary. I haven't personally integrated a toolset like DevExtreme into DNN in a long time, as we've been mostly pure SPA in recent years (with some web forms). However, it could be possible. The problem with MVC-based tools like this is that DNN itself has sort of wrapped the ASP.NET MVC API.

      This means that some things will not be possible, others will require a workaround, others might require one or more wrapper classes to help route logic, and so on. You might find yourself having to figure this out through trial and error.

      Maybe someone else who has done this before will read this message and chime in. I'll also post about it in the community Slack to see if I can pull in anyone from there to respond to you. :)
      Will Strohl

      Upendo Ventures DNN experts since 2003
      Official provider of the DNN-based E-Commerce w/ Hotcakes Commerce Cloud and SLA support


      New Around Here


      Posts:2
      New Around Here

        Hi Will
        Ok I made import of DevExtreme.AspNet.Mvc but when View inherits from DotNetNuke.Web.Mvc.Framework.DnnWebViewPage there is a confusion and @Html helper is autmaticaly reference from DnnWebViewPage not from DevExtreme and that why I think is error message that tells about problem to find @Html.DevExtreme().
        Is it any way to use DevExtreme() helper not from DNNWebViewPage ?
        Maybe via full path ?
        Maybe to make somehow the instance of helper ?
        You are not authorized to post a reply.

        These Forums are dedicated to discussion of DNN Platform.

        For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

        1. If you have (suspected) security issues, please do not post them in the forums but send an email to [email protected]
        2. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved