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

DatePicker in Grid with Globalization

2 Answers 140 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 25 Feb 2019, 02:12 PM

     Hi, 

I'm trying to get the correct date format for different countries in the date picker input field in the grid when entering "edit mode" for the cell containing a date, but I can't find any documentation or examples showing me how to wrap the grid component in the correct way, or what is needed for the IntlProvider to do this for me?

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Feb 2019, 09:41 AM
Hello, Andreas,

This will require using the "IntlProvider" for the formats and the "LocalizationProvider" if the messages have to be localized as well.

I made an example demonstrating this with the all in edit example:

https://stackblitz.com/edit/react-fpajru?file=app/es.json

I hope this is helpful.

Regards,
Stefan
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
Mohammad
Top achievements
Rank 1
commented on 09 Oct 2021, 09:41 AM

Hi, Stefan,

I've had the same problem, but after I did what you said I still have some problems with my locale
my locale is 'fa-IR' and I'm trying to use grid with inline editing

The calendar is incomplete e.g. (we use Shamsi date system which we are at 1400 but when i try to add a new row the calendar date is only between 1900-2099, and the month names are still Gregorian)

Any idea how to fix these??

Stefan
Telerik team
commented on 11 Oct 2021, 05:42 AM

Hello, Mohammad,

This is expected as currently, the KendoReact Calendar only supports a Gregorian type Calendar:

https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/

`The KendoReact Calendar is a form component that represents a graphical Gregorian calendar...`

Apologies for the inconvenience this may have caused you.

0
Andreas
Top achievements
Rank 1
answered on 26 Feb 2019, 09:44 AM

Thank you Stefan!

 

I was missing the imports and loading all the needed json-files with all the locallization.. stuff :)

It's working for me now! Cheers!

Tags
General Discussions
Asked by
Andreas
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or