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

Issue with sourcing date from python

1 Answer 149 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
nemam
Top achievements
Rank 1
nemam asked on 23 Mar 2021, 04:07 PM

I have an issue where some dates do not get pulled from data source while others do.

All source dates are in python datetime.date object. Example of two dates where one works, one does not. Along with relevant code snipped from schema/model:

 

1995-05-01
1990-09-10

fields: {
  rozuctovanie_vyhotovenie: {type: "date"},
  rozuctovanie_fakturacia: {type: "date"},
}

And resulting dates shown in final grid; as you can see the September date didn't even get loaded. I'm honestly unsure if this is a problem of sourcing from python datetime.date object or something else.

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 26 Mar 2021, 01:29 PM

Hello Nemam,

I tested the reported behavior where those two dates are retuned from a mock api and the dates are parsed as expected. Here is a sample dojo demonstrating my attempt to reproduce the issue reported. Is the JSON returned from the remote endpoint valid? Are you getting any errors logged on the console?

In order to be able to provide a better suggestion please share a runnable sample where I can observe the behavior. You can update the example dojo above, with the Grid configuration you have and pass a sample data to demonstrate the issue, and send it back to me..

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Data Source
Asked by
nemam
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or