This is a migrated thread and some comments may be shown as answers.

binding templates and editors

2 Answers 82 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Veteran
Neeraj asked on 12 Sep 2017, 08:34 AM
Hello,
           I am using .NET MVC project.  I have External MVVM template. I am using for , autocomplete, . I want to know how can make shared templates and can load multiple templates at  use load respected with their templates and editor templates?

2 Answers, 1 is accepted

Sort by
0
Neeraj
Top achievements
Rank 1
Veteran
answered on 12 Sep 2017, 08:54 AM
Please tell a good way to split out my .tmpl.htm file as there is now of templates in one .tmpl.htm file. I want to create components like shared partial view which has editors in asp.net (which can be used in too) 
0
Ianko
Telerik team
answered on 13 Sep 2017, 01:18 PM

Hello Neeraj,

I assume you are using the Remote Templates example demonstrated here: http://docs.telerik.com/kendo-ui/framework/templates/load-remote#remote-templates. Although the example shows how to use a single file, you can still use multiple files and load the ones needed in the pages/views where required. I doubt that this requires any additional code to be implemented, you need to only load the remote templates where you need them. 

As for the "editor in asp.net", I am not sure what you aim. If you would like to use those templates as MVC Editor templates, then you should consider using proper partial views. Those remote views cannot be rendered as MVC editor (@Html.EditorFor) or utilize such in the code.  

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MVVM
Asked by
Neeraj
Top achievements
Rank 1
Veteran
Answers by
Neeraj
Top achievements
Rank 1
Veteran
Ianko
Telerik team
Share this question
or