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

NoRecord Properties in the MVVM

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 03 Oct 2017, 09:56 AM

i'd like to do this with MVVM.

<div id="grid"></div><script> $("#grid").kendoGrid({ columns: [{ field: "name" },{ field: "age" }], pageable: true, noRecords: { template: "No data available on current page. Current page is: #=this.dataSource.page()#"}, dataSource: { data: [{name: "John", age: 29}], page: 2, pageSize: 10}});</script>

 

 

How i write this (noRecords) in the mvvm?

no-data-records?

data-no-data-records?

or

data-noData-records?

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 05 Oct 2017, 06:26 AM
Hello, Federico,

In the MVVM approach the syntax would be:

data-no-records="true"

http://dojo.telerik.com/ErISo

In general, please check the following article demonstrating the MVVM syntax rules:

http://docs.telerik.com/kendo-ui/intro/widget-basics/data-attribute-initialization#set-data--options

I hope this is helpful.

Regards,
Stefan
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.
Tags
Grid
Asked by
Federico
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or