Date picker widget: Register the date picker control

To use the date picker control on Sitefinity CMS pages, you must register it in the Toolbox. Perform the following:

Add a reference to the date picker control in the Sitefinity CMS project

You add a reference in the following way:

  1. Open the bin/Debug folder of the DatePicker project.
  2. Copy DatePicker.dll.
  3. Open the bin folder of the Sitefinity CMS project.
  4. Paste DatePicker.dll.

Register the control

You register the control in the Sitefinity CMS Toolbox in the following way:

  1. In Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
  2. In the treeview on the left, select Toolboxes » Toolboxes » PageControls » Sections.
  3. To add a new section for your custom controls, click Create New.
  4. In the Name field and in the Title field, enter Custom
  5. Click Save changes.
  6. In the treeview on the left, select Custom » Tools.
  7. To register your control, click Create New.
  8. In the Control CLR Type or Virtual Path field, enter DatePicker.DatePickerField
    This is the type of the control in the assembly.
  9. In the Name field, enter DatePicker
  10. In the Title field, enter Date Picker
  11. Click Save changes.

The date picker control is now registered in Sitefinity CMS toolbox. You can drop it on a page and see how it performs. For more information, see Date picker widget: Use the date picker control.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?