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. Image for the cookie policy date

Any wait of making the textbox from DropDownCalendar ReadOnly

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

1 Reply

ME Meena Syncfusion Team 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.

 <code>

[Script]

  $(document).ready(function () {

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

  

     });

</code>

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.

Regards,

Meena



DDC_TestSample_c9e856c0.zip

Loader.
Live Chat Icon For mobile
Up arrow icon