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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?