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

How to change noRecord message od grid?

1 Answer 308 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 10 Oct 2017, 08:21 AM

I have this code:

kendo.ui.Grid.prototype.options =  
$.extend(true, kendo.ui.Grid.prototype.options,{
        noDataTemplate:"NoData",
        noRecordsTemplate:"NoData",
        noRecords:"NoData"  
});

this code doesn't work!

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 11 Oct 2017, 12:04 PM
Hello Federico,

You can localize the noRecords option of the Grid by the following JavaScript code:
<script>
  kendo.ui.Grid.prototype.options.messages =
    $.extend(true, kendo.ui.Grid.prototype.options.messages, {
      noRecords: "No records available CUSTOM."
    }); 
</script>

Checkout the following Dojo example, where the above is demonstrated.

Regards,
Dimitar
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
General Discussions
Asked by
Federico
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or