Hi All,
I'm having a problem with the Modern Date Picker control not accepting changes. I am setting the SelectedDate (which I assume is the DefaultDate) to a date value that I lookup from a collection.
When I come to change the date from the 23rd March 2023 to another date the Date picker defaults back to 23rd March 2023.
I have also changed the IsEditable property to true and this had no effect.
The date picker does allow updates when I use a gallery Selected property as the SelectedDate and also works if I set the SelectedDate to Today().
Has anyone experienced a similar issue or can anyone provide any advice?
Many Thanks
Date Picker moder control does not work properly when it is inserted into a Gallery. I noticed that it works well out of a Gallery.
Hi @NotOnUrNelly7 ,
I'm not able to reproduce the issue. Please consider raise a ticket in admin center:
Help + support | Power Platform admin center (microsoft.com)
Best regards,
A quick update on this one!
I rebuilt my component from scratch last week and the Modern Date Picker was working fine, I could set the selectedDate to the Gallery Item (ThisItem.InstallDate) and I could then change it and it allowed me to update the date.. This continued to work for a week in my new component but still did not update in my original component.
All of a sudden the date picker has stopped allowing me to change its value in my new component if it has already been set to a variable or a gallery item using SelectedDate.
I have now replaced the modern control with the old date picker control until the Modern Date Picker is more stable within components.
Has anyone else experienced the same problem?
Thank you for your reply @v-jefferni,
I have simplified the gallery items to a simple collection and set the Selected Date to a date field in the gallery as below.
I have set the SelectedDate property to ThisItem.InstallDate rather than using a lookup as in the original post and this worked YESTERDAY :(. The datepicker allowed me to change the dates.
I have the need to build a similar gallery this morning and the DatePicker will not let me change the Date which is awfully strange.
please note both of these DatePicker controls are being used within components as the galleries are required across multiple screens.
I'm very confused as to why this worked yesterday and not today.
Hope you can help.
Hi @NotOnUrNelly7 ,
Could you please share more details about your scenario? What's the Items of the Gallery? I'm wondering why there is a Value column in this collection and a fixed value for the LineNum column. Could you explain the situation for me please?
Best regards,
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional