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
close icon

Empty date in DropdownCalendarControl

Hi,

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


Regards

Sateesh.

3 Replies

VS Venkatesh S Syncfusion Team 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


SJ Sateesh Jain 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


VS Venkatesh S Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon