StrataFrame Forum

DBNullReplacement on SF Infragistics UltraDateTimeEditor

http://forum.strataframe.net/Topic9052.aspx

By Tim Dol - 5/24/2007

The DBNullReplacement value 1/1/1800 doesn't seem to be working properly on the SF Infragistic UltraDateTimeEditor.  It is displaying the value 1/1/1800 instead of blanking it out.  When I use a Standard SFDateTimePicker it works fine.

Is there another property that needs to be set in order for this to work ?

Thanks,

Tim

By StrataFrame Team - 5/24/2007

If you check the .Value of the control when it's displaying 1/1/1800 does it have a time portion on it (like 1/1/1800 4:38:26 PM) or is it blank (like 1/1/1800 12:00:00 AM)? 
By Tim Dol - 5/24/2007

Strange...the .value of the control = nothing The .text = 1/1/1800.

Tim

By Tim Dol - 5/29/2007

Is this missing 'value' a problem with the control itself or the wrapper implementation?
By Tim Dol - 6/25/2007

I'm still having problems showing 1/1/1800 as a blank date and was wondering if I'm doing something wrong or if there is a problem with the wrapper? 

Also, I noticed a number of SF properties missing from the Infragistics Date Control, like ClearKey, ClearOnNull, StripTimeFromValue.  Will these be added?

Thanks

Tim

By Trent L. Taylor - 6/26/2007

The reason some of the additional properties were added to the SF DateTimePicker is because of how the control interacts with the value.  At present, we have no plans to add these to the Infragistics control as we have not yet seen the need since there is more granular control with the Ultra controls.

Since I am just getting involed on this post, are you having the same behavior that you described with the SF control as well as the Infragistics date control?

By Tim Dol - 6/26/2007

The SF Control works perfectly. The display is blank when the date is 1/1/1800 and when there is a date, I can press DEL to reset it back to the default date 1/1/1800 and the control displays a blank again.

I can't seem to get rid of the 1/1/1800 on the Infragistic control.

Tim

By Tim Dol - 7/9/2007

HI Guys,

Any chance we can try to resolve this issue? 

Thanks,

Tim

By Tim Dol - 7/9/2007

Never mind, I'm an idiot... I had entered 1/1/1800 in the NullText property without fully understanding what this property was used for, so I kept getting 1/1/1800 when the value was nothing, which is exactly what I was telling it to do.  I reset the property and I now have my desired results.

Sorry for wasting your time...

Tim

By Trent L. Taylor - 7/9/2007

LOL...glad you found your problem Smile
By Greg McGuffey - 7/9/2007

You may have wasted somebody else's time, but it's posts like this that reallllly help...somebody sometime is going to do this exact same thing...Now a bunch (OK, a gaggle) of people who've read this post will be slightly more clueful...so thanks!



Cool