DNN Forums

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

DnnWebViewPage and @Html.DevExtreme() helper

Sort:
You are not authorized to post a reply.





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).






    Senior 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. :)





      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 the 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 instead follow the official DNN security policy
        2. No Advertising. This includes the 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