CapableObjects › Forums › SupportForum › MVC + WecPof
Tagged: Turnkey + ext.net components
This topic contains 8 replies, has 3 voices, and was last updated by Admin 5 years, 10 months ago.
-
AuthorPosts
-
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.
ThahksHi,
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.
Any sources (examples of using)?
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.
LarsHi
Thanks a lot!Regard.
SegHi!
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
SegUsing REST:
http://mvc.ext.net/#/GridPanel_Update/Restful/How can i do it (simplest way)?
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.
-
This reply was modified 5 years, 11 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.