How to create noRecordsTemplate in MVVM?

3 posts, 1 answers
  1. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 10 Oct 2017 Link to this post

    I'd like to create a noRecords template for my grid with mvvm.

    noRecords: {
       template: "nessun elemento"
     },

    This is my kendo grid with mvvm.

    <div id="a"
    data-role="grid"
    data-no-records="templateNoRecords"
        data-columns="[
                    { 'title': 'ID', 'field': 'id'  },

        { 'title': 'ID', 'field': 'id'  }

            ]"
     data-bind="source: products.source,">
    <script id="templateNoRecords" name="templateNoRecords" type="text/x-kendo-template">
          Nessun dato trovato
    </script>
  2. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 10 Oct 2017 Link to this post

    this question is wrong. I wrote a new one question
  3. Answer
    Preslav
    Admin
    Preslav avatar
    516 posts

    Posted 11 Oct 2017 Link to this post

    Hello Federico,

    I am linking the other forum post for a reference if anyone from the community encounters the same issue.

    http://www.telerik.com/forums/how-to-create-norecordstemplate-in-mvvm-9754929a6857

    Regards,
    Preslav
    Progress Telerik
    Try our brand new, jQuery-free Angular 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