Upload Template within Template

6 posts, 0 answers
  1. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 09 Nov 2015 Link to this post

    I've got an existing page that's created using a Kendo template. I need to add one or more upload widgets to this page (dynamic, based on page contents). I see that it's possible to template the upload widget (http://demos.telerik.com/kendo-ui/upload/templates), but I'm not sure how or if that will work inside my existing template. Can you point me towards documentation, or even better, an example of how to implement nested templates (if possible), specifically upload templates?

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 10 Nov 2015 Link to this post

    Hello shimmoril,

    In this case the standard rules for nesting Kendo UI templates apply. You could find them on the following documentation page. Generally if there is a hash symbol, which is part of a binding expression in nested template, it should be escaped, so that it is not evaluated by the outer template.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 10 Nov 2015 in reply to Dimiter Madjarov Link to this post

    I've never used nested templates before, which is why I posted this question. Your link doesn't have any information on the nesting specifically, which is what I was after.
  5. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 10 Nov 2015 in reply to Ashleigh L Link to this post

    ​FYI I've attempted to nest an upload template, but I get a JQuery error when clicking the Select Files button. The error doesn't occur if the template isn't used.
  6. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 11 Nov 2015 Link to this post

    Hello shimmoril,

    If the issue is persisting, please send us an isolated runnable example demonstrating it, so we could inspect it locally and provide assistance.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 16 Nov 2015 in reply to Dimiter Madjarov Link to this post

    Thanks Dimiter. At this point we're going to skip the template due to time constraints, but I'll keep it in mind if we circle back to it in the future.
Back to Top
Kendo UI is VS 2017 Ready