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

Grid Localization seems not to work

3 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tonys
Top achievements
Rank 1
Tonys asked on 13 Mar 2019, 01:32 PM

 

Hi,

I'm trying to translate the filter menu of the Grid.

the instructions on page:

https://www.telerik.com/kendo-vue-ui/components/grid/api/FilterableProps/

seems clear.

But if I put by example:

 

<kendo-grid ref="grid"  :data-source-ref="'datasource1'" :pageable='true' :sortable="true"  :filterable="true"  :selectable="true"
 :filterable-messages-clear="'Reimposta'"

 

The text of the relative button is always "clear".
Any suggestions?
Thank's in advance!

 

 

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 14 Mar 2019, 07:57 AM
Hello,

I have tested it in a stackblitz sample and it worked correctly at my side - here is a video. Please review it and let me know if you have further questions.

Regards,
Plamen
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Tonys
Top achievements
Rank 1
answered on 14 Mar 2019, 02:19 PM

Hi Plamen. Thank you very much for you support.

Actually the code works. I tried to understand why my code didn't work ... after many tests I realized that seems to be a conflict when I bind the attribute filterable.

This will not work:

<kendo-grid :data-source-ref="'datasource1'"

:filterable="true"
:filterable-messages-clear="'Reimposta'"
:pageable="true" >

Without :filterable attribute, everything seems works:

 

<kendo-grid :data-source-ref="'datasource1'"
:filterable-messages-clear="'Reimposta'"
:pageable="true" >

Even in your example.

0
Plamen
Telerik team
answered on 15 Mar 2019, 07:37 AM
Hi,

I have inspected this scenario and indeed it is not working correctly when adding :filterable="true". The reason is because once we have a :filterable-* property added it already sets automatically the filterable option to a positive value and we don't need to set it again. In this case :filterable is not needed yet when we add it, it is overriding the other properties and that is why they are not applied. 

In your case just use the component without  :filterable="true". Meanwhile we will think about adding a documentation or some warning about this configuration specific. I have logged an issue here.

Regards,
Plamen
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Tonys
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Tonys
Top achievements
Rank 1
Share this question
or