Assigning the designer to the date picker control

To assign the multi view designer to the date picker control you must add the following attribute to the DatePickerField class definition:

[ControlDesigner(typeof(DatePickerFieldDesigner))]

The DatePickerField class looks like this:

[ControlDesigner(typeof(DatePickerFieldDesigner))]
[DatabaseMapping(UserFriendlyDataType.Date)]
public class DatePickerField : FieldControl, IFormFieldControl
{
    ...
}

After you create the date picker control and the multi view designer for it, you must register the control in Sitefinity backend. For more information, see Registering the date picker control.

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK