binding templates and editors

3 posts, 0 answers
  1. Neeraj
    Neeraj avatar
    48 posts
    Member since:
    May 2015

    Posted 12 Sep Link to this post

    Hello,
               I am using .NET MVC project.  I have External MVVM template. I am using mvvm for dropdown, autocomplete, grid , comboList. I want to know how can i make shared templates and can load multiple templates at once  and use load respected datasource with their templates and editor templates?
  2. Neeraj
    Neeraj avatar
    48 posts
    Member since:
    May 2015

    Posted 12 Sep Link to this post

    Please tell a good way to split out my .tmpl.htm file as there is now lost of templates in one .tmpl.htm file. I want to create components like shared partial view which has editors in asp.net mvc (which can be used in other view too) 
  3. Ianko
    Admin
    Ianko avatar
    1729 posts

    Posted 13 Sep Link to this post

    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.
Back to Top