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

Translating "noRecords" message

1 Answer 613 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raphaël MANSUY
Top achievements
Rank 1
Raphaël MANSUY asked on 13 Apr 2018, 06:27 PM

Hi,

I've defined the following grid:

<kendo-grid [data]="gridData | async" [height]="410" resizable="true">
    <kendo-grid-messages noRecords="{{'RequestsRegister.NoRecord' | translate}}">
    </kendo-grid-messages>
    <kendo-grid-column field="identity.email" title="{{'RequestsRegister.UserEmail' | translate}}" width="150">
    </kendo-grid-column>....

 

but "noRecords" displays nothing...

the syntax is correct, and it works for the column's title, so what's wrong?

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 17 Apr 2018, 01:59 PM
Hi Raphaƫl,

Thank you for the provided sample code.

In general if we want to use the custom messages provided by the grid please check the following article that demonstrates this feature:

https://www.telerik.com/kendo-angular-ui/components/grid/globalization/#toc-custom-messages

We can now also dynamically change the messages provided by the Message Service at run-time. For more details on that functionality please check the following article:

https://www.telerik.com/kendo-angular-ui/components/localization/messages/#toc-updating-messages-dynamically

I am also sending an example that demonstrates the language change of the messages, at run time, by changing the locale of the application:

https://plnkr.co/edit/HBF2AnXulI36uPiN6rgv?p=preview

I hope this helps.

I am also not sure what does the 'translate' pipe do. Please provide some more information on that in case further assistance is required for this case.

Regards,
Svetlin
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
Raphaël MANSUY
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or