Tag helper custom editor popup

2 posts, 0 answers
  1. Tim
    Tim avatar
    20 posts
    Member since:
    Oct 2015

    Posted 07 Dec 2019 Link to this post

    What's the syntax for this as this doesn't seem to work?

     

     <editable enabled="true" mode="popup" template="/Features/Shared/EditorTemplates/FileUploadForm.cshtml" />

  2. Nikolay
    Admin
    Nikolay  avatar
    302 posts

    Posted 11 Dec 2019 Link to this post

    Hello Tim,

    To enable Custom Pop-up editing using Tag Helpers you could specify a template-id and invoke it in the scripts:

    <editable mode="popup" template-id="popup-editor" />
    ....
    <script id="popup-editor" type="text/x-kendo-template">
        @Html.Partial("PopupEditor")
    </script>

    In this scenario, the PopupEditor must be located in /Views/Home folder.

    For your convenience, I am attaching a small project demonstrating the above.

    Let me know if you have any questions.

    Regards,
    Nikolay
    Progress Telerik

    Get quickly onboarded and successful with Telerik UI for ASP.NET Core with the dedicated Virtual Classroom technical training, available to all active customers.
Back to Top