We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Any wait of making the textbox from DropDownCalendar ReadOnly

Thread ID:





106514 Jan 10,2013 06:55 PM UTC Jan 11,2013 11:55 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Asked On January 10, 2013 06:55 PM UTC

Hello, I don't want users try to type in the textbox part of the DropDownCalendarControl.
Is there a way to make it ReadOnly ?

Meena [Syncfusion]
Replied On January 11, 2013 11:55 AM UTC

Hi Vincent,

Thanks for contacting Syncfusion forums.

Your requirement of making the textbox content read-only in DrodpownCalendar can be achieved using the below code snippet.



  $(document).ready(function () {

        document.getElementById('MainContent_DDC_text').disabled = true;              //Here DDC is the control ID. ‘MainContent_(Your control ID)_text’ is the element.




We have also prepared a simple sample with the above requierement and it can be downloaded from the below link.

Kindly have a look at the sample and let us know if it helps.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon