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.

DropDownCalendarControl

Thread ID:

Created:

Updated:

Platform:

Replies:

99728 Jun 7,2011 10:03 PM Mar 1,2018 03:57 AM ASP.NET Web Forms (Classic) 9
loading
Tags: Tools
victor elizondo
Asked On June 7, 2011 10:03 PM

Hi everybody

I have a little problem with a DropDownCalendarControl and I need your help. I want to save in a database an empty value from a DropDownCalendarControl. As you can see in the attached image, the "textbox" of the calendar is empty because I delete it with the backspace key, but in the calendar the selected date is June 17th, so, when I see in the C# code the properties of Text or Value, the date is June 17th, but i want either to record the empty value of the textbox, or I want to disable the capacity of deleting the date in the textbox ( but I don't want to disable the calendar).

Best Regards.




dropcalendar_da3f0a5c.zip

Vignesh [Syncfusion]
Replied On June 8, 2011 07:07 AM

Hi Victor,

Thanks for your interest in Syncfusion products.

Could you please share with us some more information about the platform you looking for and also the version of the product?. so that we could able to sort out the cause and provide you an efficient solution.


Regards,
Vignesh


victor elizondo
Replied On June 8, 2011 10:44 AM

Hi Vignesh

Thanks for the rapid question.

I'm working in a web platform in Visual Net with C#. Probably this request sounds a little silly, but I need fix this problem.

The version of syncfusion that I'm using is 6.4.0.15.

And the trouble with less words is:

Either save an empty value using a DropDownCalendarControl or make not posible to erase the date of the textbox of the DropDownCalendarControl ( but I must be able to select the date from the dropdown)

Best Regards.
Victor


victor elizondo
Replied On June 8, 2011 05:37 PM

Something that I didn't say clearly is the next thing:

I want to record an empty value in a field from a database (this deleting the date in textbox in the DropDownCalendarControl ), but when I press an aspx button trying to save information, my aspx page ( I'm using visual net C# 2008) will be reloaded, and the syncfusion control DropDownCalendarControl ALWAYS will has the internal property IsNullDate like false and also will has the Text Property or Value Property with a date.

I want to record an empty value from a DropDownCalendarControl but it seems impossible.

I need to know if my request is possible to resolve.

Best Regards.


victor elizondo
Replied On June 8, 2011 05:42 PM

Or the other solution:

Make not possible to delete the date in the textbox from the DropDownCalendarControl.

Best Regards.


Vignesh [Syncfusion]
Replied On June 9, 2011 07:27 AM

Hi Victor,

Thanks for your Update.

Query 1 : "Disable text field of the DropDownCalendar"

To disable the text field of the DropDownCalendar use the following code snippet,

[Javascript]





Query 2 : "To get the empty value"


To get the empty value as in the Text field of the DropDownCalendar use the Text property and set the IsNullDate property to true. The
following code illustrate this.



[CS]

this.TextBox1.Text = this.Drop.Text;




Also I have created simple sample for this and attached in the below link for your reference.


DropDownCalendar-190365215.zip



Also We suggest you to upgrade with new version which have added more features.


Please let us know if you have any queries.



Regards,
Vignesh




victor elizondo
Replied On June 9, 2011 05:33 PM

Hi Vignesh

Thanks for you update.

I've seen the code you sent me and it's all I need, it's great, but i want to know if you have another code where I could see just one dropdowncalendar with the textbox disable and without using JQuery. I was thinking just to use "disable-dropdown-textboxes" for my proyect.

Best Regards
Victor.


victor elizondo
Replied On June 9, 2011 05:33 PM

Hi Vignesh

Thanks for your update.

I've seen the code you sent me and it's all I need, it's great, but i want to know if you have another code where I could see just one dropdowncalendar with the textbox disable and without using JQuery. I was thinking just to use "disable-dropdown-textboxes" for my proyect.

Best Regards
Victor.


Jaffersathick B [Syncfusion]
Replied On June 14, 2011 08:07 AM

Hi Victor,

Thanks for the update.

Currently we don’t not provide the server side property to disable the text field of the Dropdowncalender, we suggest you the use the Script solution which is provided earlier or use the Enabled property of the Dropdowncalender which will disable the whole control.

Let me know if you have any concerns.

Regards,
Jaffer



Salonee Chitlangia
Replied On March 1, 2018 03:57 AM

Hi Vignesh

Thanks for the rapid question.

I'm working in a web platform in Visual Net with C#. Probably this request sounds a little silly, but I need fix this problem.

The version of syncfusion that I'm using is 6.4.0.15.

And the trouble with less words is:

Either save an empty value using a DropDownCalendarControl or make not posible to erase the date of the textbox of the DropDownCalendarControl ( but I must be able to select the date from the dropdown)

Best Regards.
Victor


Hi

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.

;