DateTimePickerAdv disable keyboard input

Hi,

I have a list of valid dates that should be used for the DateTimePickerAdv and I use the DateCellQueryInfo event to prevent invalid dates from being selected by the users.

How do I do the same for the manual input on the DateTimePickerAdv 'TextBox'? If not, how to disable any manual input and force users to use the drop-down calendar?

Thanks

natalia

2 Replies

FS Fathima Shalini P Syncfusion Team June 12, 2009 04:45 AM UTC

Hi Natalia,

Thank you for your interest in Syncfusion Products.

To disable entering values manually and to allow to enter a value only using MonthCalender is possible by overriding ProcessCmdKey event. Kindly refer to the sample provided below that illustrates this:

http://files.syncfusion.com/support/Tools.Windows/7.2.0.20/56845_1/main.htm

Please let me know if any concerns.

Regards,
Fathima


YU yuazhe August 12, 2010 10:03 AM UTC

The link does not work. Could you please provide a working one?

Loader.
Up arrow icon