Create a date picker control
Sitefinity comes with a set of built-in controls, which can be directly used in the pages you create. You are also capable of creating your own controls and use them side by side with the default ones.
This tutorial guides you through the steps required to create a custom form control with a control designer. It is intended for developers and covers step-by-step a wide range of activities when creating a custom control. As an example, you create a date picker control that has its own custom designer. It defines a RadDatePicker control that is used by the user to choose a date. The custom designer of the form allows users to define a range that is automatically validated by the RadDatePicker built-in validation. The tutorial focuses on the following:
Preparing your working environment
Creating the control
Creating the control designer
Registering the date picker control
Using the date picker control
For more information about controls in Sitefinity, see Working with controls and Controls.
Before you begin creating the control, you must have the following installed:
- .NET Framework 4.0
- Visual Studio
- Sitefinity SDK
To create and use the custom form control, you must have an up and running Sitefinity project. For more information about installing Sitefinity and creating and starting a project, see Installation and Administration Guide.