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.
Unfortunately, activation email could not send to your email. Please try again.

Any wait of making the textbox from DropDownCalendar ReadOnly

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

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

CONFIRMATION

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.

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.

;