jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Date string format changed after been clicked in grid
Tagged: date format changed
This topic contains 6 replies, has 3 voices, and was last updated by Peter Stoev 4 years, 10 months ago.
-
Author
-
Hi,
I am using the datetime picker in angular grid, and the data for the picker is a date format string like this: “08/08/19 03:13:31”, after render the grid, it is showing the same format in grid, but the problem is, when I click this grid cell, then click outside of it(blur event), then date format will change to “Thu Aug 08 2019 03:13:31 GMT-0700 (Pacific Daylight Time)”.
I have tried to convert the input data from date string to date object, but the result is same.And here is the column config:
{ text: item, datafield: item, align: 'center', width: 250, height: 32, columntype: 'datetimeinput', createeditor: (row, column, editor) => { editor.jqxDateTimeInput({ formatString: 'MM/dd/yyyy hh:mm tt', showTimeButton: true, showCalendarButton: true }); }, rendered(element) { element.jqxTooltip({ position: 'mouse', content: item }); }
Hi ilywanzi,
The displayed value in the grid cells depends on the column’s cellsformat property. You will need to set it in order to have a formatted value displayed in the grid cells.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi, I have one more issue about the datetimeinput inside grid, and this issue happens randomly.
First, sometimes I need to click two times of the calendar or time picker button to open.
Second, if the first situation happens, then the calendar dropdown size will become smaller than normal.This issue not always happen, sometimes when I close the app’s tab, then open again, this issue will not happen.
Do you have any idea to check this issue?
Hi ilywanzi,
Please, share stackblitz demo which demonstrates the behavior.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi ilywanzi,
Do you need help providing stackblitz sample which demonstrates the issue?
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi, I have fixed that issue, thanks.
Hi ilywanzi,
Thanks for the update.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.