Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2116
Is there a way to disable text input while allowing only dropdown calendar input?
posted

Users are requesting this.

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into the question that you are having and you can implement this approach by disabling the MaskedInputTextBox, used in the XamDateTimeInput.  You can do that, by handling the Loaded event of the XamDateTimeInput and using the Utilities class to get the MaskedInputTextBox and set its IsEnabled property to false. By doing so, you will disable to input of the XamDateTimeInput and you will allow setting the date, by using the drop down only. I have created sample application for you, that shows how you can implement this approach.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    DateTimeInputNotEditable.zip
Children