Problems with CanEdit / NullValue

Hi,

I currently have two problems with the DateTimeEdit WPF control:

1.) When setting CanEdit=false, I still can do a textual edit - what I'd like to achieve is that the user can only pick a date via the picker control when activating the dropdown, how to achieve that?

2.) When setting a null value, the NoneDateText is not shown, instead I have two dots (the german date separators) - when changing the locale to english, I get the correct english ones (//) - please see attached picture. I assume that this behaviour is a bug? I can easily reproduce it by preparing an empty WPF project and injecting a DateTimeEdit with the appropriate parameters.

Could someone verify that?

Some more details:

Syncfusion WPF Version 15.3460.0.33
Compiling for .NET Framework V4.6.2 (System Version 4.7.02556)
Compiled using Visual Studio Community 2017, Version 15.5.1

Cheers,

Frank

Attachment: datetimeedit_8d8aefbe.zip

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team February 13, 2018 12:42 PM UTC

Hi Frank

Thank you for contacting Syncfusion Support

Query 1: When setting CanEdit=false, I still can do a textual edit - what I'd like to achieve is that the user can only pick a date via the picker control when activating the dropdown, how to achieve that?

From your requirement, we come to know that you dont want to edit the DateTimeEdit and you want to pick the date only from the Picker control. In the DateTimeEdit control, when CanEdit is set as false, it allows the DateTime to edit the DateTimeField such as[Year,Month,Date]. So in order to achieve your requirement, you can handled it using the PreviewKeyDown event of DateTimeEdit control, so that you could not edit the value in the DateTime.

Please find the sample for the same.

Sample: http://www.syncfusion.com/downloads/support/forum/135894/ze/DateTimeEdit_caneditdisable-1887178883 

Query 2: When setting a null value, the NoneDateText is not shown, instead I have two dots (the german date separators) - when changing the locale to english, I get the correct english ones (//) - please see attached picture. I assume that this behaviour is a bug? I can easily reproduce it by preparing an empty WPF project and injecting a DateTimeEdit with the appropriate parameters.

We have checked the reported query and we were able to reproduce the reported issue at our end. The fix for this reported issue would be included in the Volume 1, sp1 release 2018.

Regards
Vijayalakshmi V.R.
 



FN Frank Nanninga February 26, 2018 09:12 PM UTC

Dear Vijayalakshmi,

I will try the solution you have provided for Query 1 and wait for the mentioned service pack for Query 2 to include it in my project.

Thank you for the provided answers, it's much appreciated and gives me confidence I have chosen the right product for my projects.

Kind regards,

Frank


VR Vijayalakshmi Roopkumar Syncfusion Team February 27, 2018 06:16 AM UTC

Hi Frank

Thank you for the update.

Please let us know if you need any further assistance on this.

Regards
Vijayalakshmi V.R. 


Loader.
Up arrow icon