Forum  General Visual ...  How do I...?  display null dates in datetimepicker?
Previous Previous
 
Next Next
New Post 3/24/2009 1:44 PM
  palli
11824 posts
1st Level Poster




Re: display null dates in datetimepicker? 

Hi guys,

Thanks for your help Martin. Good work.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/3/2009 8:54 PM
  sbruyneel
39 posts
No Ranking


Re: display null dates in datetimepicker? 

There is a property called showcheckbox on the datetimepicker. The checkbox set to false grays out the date.

This is an acceptable solution to represent null dates for my project.

Another problem I have with trhe datetimepicker is when a user wants to manually input dates. I use short dates when user start typing the mask should be set to ../../.... Is this possible with the standard datetimepicker? Thanks, Sander

 

 

 
New Post 4/5/2009 4:35 PM
  palli
11824 posts
1st Level Poster




Re: display null dates in datetimepicker? 

Hi Sander,

You can use the idea presented earlier in this thread of changing custom formatting of the DateTimePicker control, depending on if the control is checked or not (DateTimePicker.Checked).

Only problem is that you don't get a Click event fired when you click on the checkbox within the control, so you have no way of knowing if it's being changed or when.

There is an issue about implementing CheckChanged event in our issue tracker here. When that event is implemented you can use is to change the formatting of the control whenever the check changes.

Palli

 

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  display null dates in datetimepicker?
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS