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

How to create noRecordsTemplate in MVVM?

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 10 Oct 2017, 11:25 AM
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 Answers, 1 is accepted

Sort by
0
Federico
Top achievements
Rank 1
answered on 10 Oct 2017, 11:29 AM
this question is wrong. I wrote a new one question
0
Accepted
Preslav
Telerik team
answered on 11 Oct 2017, 12:51 PM
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.
Tags
Grid
Asked by
Federico
Top achievements
Rank 1
Answers by
Federico
Top achievements
Rank 1
Preslav
Telerik team
Share this question
or