MVC + WecPof

CapableObjects Forums SupportForum MVC + WecPof

This topic contains 8 replies, has 3 voices, and was last updated by  Admin 5 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5051 Score: 0

    egs99
    Participant

    I’m trying to use htmlhelpers – DisplayWecpofActions, DisplayWecpofUIBootstrap,
    But I do not see them from class MvcRazorHtmlHelper.
    Where did they disappear?
    Example MVC5_2014_GitTemplateAmp does not work.
    Thahks

    #5068 Score: 0

    Lars
    Participant

    Hi,

    Sorry about the inconvenience, we’re restructuring the entire MVC rendering engine in Turnkey.
    We are moving away from generating complete HTML to rendering Razor-code that is then inserted into the “surrounding” Razor page.

    Because of this, the function “DisplayWecpofUIBootstrap” does not exist any more.
    Instead, you call Html.RenderRazorView(). You’ll then get a file name, which you use for a @Html.Partial()
    Like this: @Html.Partial(Html.RenderRazorView())
    If you want the Html, not the virtual file name, you can call Html.MVCUITurnkeyViewOverride(). You then need to use the Html like this HttpUtility.HtmlDecode(html from MVCUITurnkeyViewOverride);

    I’m sorry that I can’t provide a better answer today. It’s because we’re still restructuring the internal code to separate layout rendering from data binding. This will make it much easier in the future to do both server and client data binding using the same HTML.

    Regards,
    Lars

    • This reply was modified 5 years, 11 months ago by  Lars.
    #5121 Score: 0

    egs99
    Participant

    Any sources (examples of using)?

    #5123 Score: 0

    Lars
    Participant

    Hi,

    The best way to get working source code at the moment is to use Turnkey’s Developer help pages. There you can see generated code from you viewmodels. You can install in Azure or a local IIS and then navigate to /MDriven/Development.

    Read more here: https://wiki.mdriven.net/index.php/Development_info_in_runtime

    When the internal structure has stabilized we will provide more examples.

    Regards.
    Lars

    #5126 Score: 0

    egs99
    Participant

    Hi
    Thanks a lot!

    Regard.
    Seg

    #5127 Score: 0

    egs99
    Participant

    Hi!
    I’d like to use third party components with MVC – Turnkey
    For example ext.net: http://mvc.ext.net/
    How can i do it (simplest way)
    Best regards
    Seg

    #5129 Score: 0

    egs99
    Participant
    #5130 Score: 0

    egs99
    Participant

    How can i do it (simplest way)?

    #5172 Score: 0

    Admin
    Keymaster

    Hi – I have not tried this myself but it seems pretty straight forward.

    This is how they suggest binding a grid – and the customers is found in the model for the view.

    <ext:GridPanel
                       runat="server"
                       Title="All Customers"
                       BindString="{customers}"

    In MDrivenTurnkey you can write /Turnkey/Development?view=NameOfViewMode>

    and in that page you find “This is how we suggest you do MVC bindings to the properties in

    and here you can see that you could replace “{customers}” with “{Model.GetvCurrentListMember(“NameOfViewOrNesting”,”NameOfViewModelColumnWithRows”)}”

    To override the standard Turnkey UI you just follow the instructions found here:
    https://wiki.mdriven.net/index.php/UIOverride

    • This reply was modified 5 years, 10 months ago by  Admin.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Comments are closed.