NoRecord Properties in the MVVM

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

    Posted 03 Oct 2017 Link to this post

    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?

  2. Answer
    Stefan
    Admin
    Stefan avatar
    2479 posts

    Posted 05 Oct 2017 Link to this post

    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.
Back to Top