Question about the DatePicker How To In the Sitefinity Documentation
Greetings,
I'm finally updating our site from SF3.7 to SF 4.2, and have a bunch of controls in SF3.7 that I had previously created Custom designers for. Since the upgrade path for those custom designers doesn't seem super clear, I'm resigned to recreating the control, using the new custom ContentViewDesignerBase classes.
Anyways, I've been following along with the DatePickerField example in the How To section of sitefinity 4, and have become stuck.
If I follow the instructions, my DatePickerField header looks like this:
1.
[ControlDesigner(
typeof
(DatePickerFieldDesigner))]
2.
[DatabaseMapping(UserFriendlyDataType.Date)]
3.
public
class
DatePickerField : FieldControl, IFormFieldControl
4.
1.
namespace
DatePicker
2.
3.
[ControlDesigner(
typeof
(DatePickerFieldDesigner))]
4.
[DatabaseMapping(UserFriendlyDataType.Date)]
5.
public
class
DatePickerField : FieldControl, IFormFieldControl
6.
Assembly 'DatePicker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not contain a Web resource with name 'DatePicker.DatePickerField.js'.
Hello Francis,
There is a KB article describing how to create a custom DateTime picker field. Maybe it will be helpful for you -
http://www.sitefinity.com/devnet/kb/sitefinity-4-x/custom-datefield-allowing-custom-date-and-time-formats.aspx
Please let us know.