Does N2 have DateTime editable control?

Topics: Developer Forum
Sep 25, 2008 at 4:47 AM
Edited Sep 25, 2008 at 7:10 AM
If I want to add a datetime type property to my item, I need put a editable datatime picker on the admin page, does N2 have?
BTW, How do I give a datasource to dropdownlist?
Sep 25, 2008 at 10:55 AM
  • N2.Web.UI.DatePicker
  • N2.Web.UI.DateRange
  • [N2.Details.WithEditableDateRange]
  • [N2.Details.WithEditablePublishedRange]
You may also consider using a jCal (aLL neccesary jQuery support is built into N2) as a more user-friendly way to visualise a DateRange control
Coordinator
Sep 25, 2008 at 4:28 PM
To use the included date picker write something along the lines of:

[Editable("My Date", typeof(N2.Web.UI.DatePicker), "SelectedDate", 123)]
public DateTime? MyDate...

You can also use the calendar control if you prefer that.

That jCal looks rather nice by the way. Maybe it's time to replace the default calendar.
Jan 9, 2009 at 1:00 PM
Just what I was looking for,

control has now moved namespace though

[Editable("My Date", typeof(N2.Web.UI.WebControls.DatePicker), "SelectedDate", 123)]