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

mainGridOptions support for Angular 5 / Typscript

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gregor
Top achievements
Rank 1
Gregor asked on 05 Jan 2018, 09:41 AM

Hi there. 

I'm trying to move my app to angular 5 and want to use the mainGridOptions.

In the past i could use there the angular translation service.

Is it still possible or could you provide a sample ?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 05 Jan 2018, 11:56 AM
Hi Gregor,

"mainGridOptions" was just a custom property name, used in a code sample for the Kendo UI for jQuery Grid configuration options object as a part of the Kendo UI for jQuery - AngularJS integration:

https://docs.telerik.com/kendo-ui/AngularJS/introduction

There is no Grid configuration property of that name, and the Kendo UI for Angular Grid component does not support binding to a whole configuration object (there is no single "options" property). All configuration inputs/event handling is performed via the regular Angular 2+ syntax, and as described in our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/

https://www.telerik.com/kendo-angular-ui/components/grid/api/GridComponent/

As for translating the Grid messages, we recommend following the established Angular practices, as described in the following section of our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/globalization/

https://www.telerik.com/kendo-angular-ui/components/localization/

There are alternative approaches to provide custom messages as well:

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

I hope this helps.

Regards,
Dimiter Topalov
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
Gregor
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or