Saving empty (or null) Date

4 replies. Last post: August 1, 2011 8:34 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Raja RamaMember

WebInput version we are using is 3.0.7200.213

I am trying to set empty or null data for a control and I can't use any key (like delete, backspace) to delete the date that is already entered into the control. This is driving me crazy.. so please help

 

Here is the sinpet of code I am using to add webInput dynamically in my form.

 

	WebInput ctrl = (WebInput) foundation;
	ctrl.BorderStyle = BorderStyle.Inset;
	ctrl.BorderWidth = 1;
	ctrl.DateTimeEditor.IsEnabled = true;

	ctrl.HighLight.IsEnabled = true;
	ctrl.HighLight.Type = HighLightType.Phrase;

	ctrl.DisplayFormat.IsEnabled = true;
	ctrl.DisplayFormat.Format = 		Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;
	ctrl.DateTimeEditor.MinDropDownYear = 1900;
	ctrl.DateTimeEditor.MaxDropDownYear = 2100;
I tried adding the following 2 lines, it DID NOT help, I have no idea where the heck is checkbox is to set null (as per the code below)

ctrl.ShowCheckBoxForNullInput = true;ctrl.EditFormat.MaskInfo.SaveBlanks =

true;

 

 

Anyway I am sure you can help me here.

 

Thanks

 

All times are GMT -5. The time now is 8:08 PM.
Previous Next