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

Empty date in DropdownCalendarControl

Thread ID:

Created:

Updated:

Platform:

Replies:

92191 Dec 28,2009 07:59 AM UTC Jan 4,2010 02:57 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: Tools
Sateesh Jain
Asked On December 28, 2009 07:59 AM UTC

Hi,

How to display empty date in DropDownCalendarControl. Sometimes i want to display empty date in DropdownCalendarControl.


Regards

Sateesh.

Venkatesh S [Syncfusion]
Replied On December 28, 2009 10:27 AM UTC

Hi Sateesh,

Thank you for your interest in syncfusion Products.

Empty date can be displayed in drop down calendar by making the value field of the textbox to empty.

Following code snippet can be used to acheive your requirement

[ASPX]




Please let us know if it helps.

Regards
Venkatesh

Sateesh Jain
Replied On January 4, 2010 07:24 AM UTC

It shows blank date at client side only. once postback is done i get some default value in it.i have some logic to be executed when value is blank.

Regards ,

Sateesh

Venkatesh S [Syncfusion]
Replied On January 4, 2010 02:57 PM UTC

Hi Sateesh,

Empty date can be displayed in drop down calendar by setting the EnableNullDate and IsNullDate properties to true for the drop down calendar.

Following code snippet can be used to achieve your requirement

[C#]


protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DropDownCalendarControl1.EnableNullDate = true;
DropDownCalendarControl1.EnableNullKeys = true;
DropDownCalendarControl1.NullString = "";
DropDownCalendarControl1.IsNullDate = true;
}
}


For more details kindly view the below link for online documentation:

http://help.syncfusion.com/ug_74/toolsweb/BehaviorSettings4.html

Please let us know if it helps you.

Regards
Venkatesh

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.

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

;