Skip to content

About

Create a TimePicker control based on the ASPxDropDownEdit control.

Topics

Resources

Stars

0 stars

Watchers

53 watching

Forks

Latest commit

 

History

69 Commits

Folders and files

Repository files navigation

Drop Down Edit for ASP.NET Web Forms - How to create a time picker control

This example demonstrates how to create a TimePicker control based on the ASPxDropDownEdit control.

Overview

Follow the steps below to create a time picker:

  1. Put the ASPxDropDownEdit control to your web form or into a UserControl.
  2. Handle the control's Init event to specify the DropDownWindowTemplate. This template should implement the ITemplate interface. In this class, populate the control's popup window content with controls.
  3. In your custom template class, call the InstantiateIn method to create buttons that are used for time picking. Set their AutoPostBack properties to false to prevent them from sending postbacks while clicking. Handle a button's client-side Click event to set the ASPxDropDownEdit control text value on the client side on a button click. You can also use this event to close DropDownWindow.

Files to Review

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Create a TimePicker control based on the ASPxDropDownEdit control.

Topics

Resources

Stars

0 stars

Watchers

53 watching

Forks

Used by

Contributors

Languages